3 ms·
OCFX, it appears you've been shadowbanned. Your question is very good so reposting it here: > Does anyone know how GraphQL manages (or if it even can) to sort
by dustingetz 8y ago
OCFX, it appears you've been shadowbanned. Your question is very good so reposting it here:
> Does anyone know how GraphQL manages (or if it even can) to sort and filter across microservices? It seems impossible to me to do from any client. If you have a list view that is made up of data from microservice a, b, and c and you try to sort on a column from microservice b, how does microservice b know how to sort then data when there are additional constraints applied to data on other microservices such as a filter applied to microservice a. Does that make sense?
Basically I feel very frustrated when it comes to sorting and filtering across microservices, some people at work think that GraphQL will solve this and I have found absolutely nothing to support the claim that it would help us with this. Thoughts?
- sokoloff 8y agoI "vouched" for that question (you also have enough karma to do that). Click on the timestamp of the question and you'll get an option to vouch for it as adding to the conversation.
- yubozhao 8y agoAs of now, GraphQL server implementations that I know of, does not manage sort and filters for you. It is up to your resolver to handle those. In case of stitching schema together(for example, your own schema plus the GitHub one), you would need to pass the sort/filter to their services.