We were evaluating if we could expose endpoints as gRPC endpoints, and found that the .proto.ts part of the code during auto-generation is not building methods that returns a promise. Currently we can have synchronous returns, but in the NodeJS world, we need these controller methods to be async so we can fetch data and return.
We were evaluating if we could expose endpoints as gRPC endpoints, and found that the
.proto.ts
part of the code during auto-generation is not building methods that returns a promise. Currently we can have synchronous returns, but in the NodeJS world, we need these controller methods to be async so we can fetch data and return.