|
|
|
|
|
by ocfx
2858 days ago
|
|
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? |
|
In cases like this you can always fall back to the naive solution: syncing the relevant data between microservices.
Unless there is something like PostgreSQL's foreign data wrappers available.