We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to use pagination with gRPC like this
rpc ListThing (ListThingRequest) returns (ListThingResponse) { option (google.api.http).get = "/v1/things" } message ListThingRequest { int32 page_number = 1; int32 page_size = 2; repeated OrderField sort = 3; } message OrderField { string field = 1; Order order = 2; } enum Order { ASC = 0; DESC = 1; }
but the sort doesn't get generated. PR with support for map not merged yet... What are the options?
sort
The text was updated successfully, but these errors were encountered:
Could perhaps use specific types for the fields you want to order? Do you need to support more than one field order at a time?
Sorry, something went wrong.
Yeah, I need to support more than one field in one query for sorting. What do you mean by specific types?
specific types
AgeOrder, NameOrder... the more specific you can make it the safer it will be to consume your API. More dynamic = less guarantees.
AgeOrder
NameOrder
No branches or pull requests
I'm trying to use pagination with gRPC like this
but the
sort
doesn't get generated. PR with support for map not merged yet...What are the options?
The text was updated successfully, but these errors were encountered: