#How framework can serialize google.protobuf.StringValue and others nullable primitive values gRPC ?

9 messages · Page 1 of 1 (latest)

wooden grove
#

Is possible to set any option, flag to automatically convert nullable strings into: { value: "tmp" } and revert for a gRPC response?

rigid flint
#

i have this same

maiden lagoon
#

The nestjs microservices abstraction allows you to set a custom setializer and a deserializer classes.

#

If I remember correctly, you can set them in the ClientsModule and in app.connectMicroservice

wooden grove
#

Ooooo! Thanks I'm looking something like that. Do You know maybe where I can find a samples?

maiden lagoon
#

I don't know if there's an example, I discovered it in the NestJS source when I was developing a custom Kafka transporter. When I get to a computer, I'll have a closer look

wooden grove
#

Any other way to bypass app.connectMicroservice?

maiden lagoon
#

What do you mean by bypass?

wooden grove
#

we do not using microservicves connection