Ahmed Ali
unread,Oct 20, 2024, 2:36:41 PM10/20/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
I created a gRPC method that returns a response with some fields as null and some as strings. When I view the response in Postman, the null values are converted to empty strings. I need the null values to be returned as null. I also used oneof for this, but if the value from the database is null, it's not an issue. However, if the value is a string, gRPC throws an error. How can I handle null values?