我们使用 golang grpc protobuf 作为我们的服务器堆栈,我想知道是否有投影功能可以过滤响应中的某些字段?
最佳答案
A FieldMask可以这样使用。根据文档:
When a FieldMask specifies a projection, the API will filter the response message (or sub-message) to contain only those fields specified in the mask.
关于protocol-buffers - golang grpc protobuf 堆栈是否有投影/过滤器支持?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62203287/