I'm trying to call a simple grpc request in a function but I don't know how to wait for the response and pass it outside the grpc call.
It should be something like that:
Client: (parent, args, context, info) =>{
client.Get({thing, objects, properties}, function(err, response) {
//how to return the response outside?
});
//await for the response function.
};
Is it possible to return the response in some way outside the client.Get function? Does someone have some suggestions? Thank you in advice!