You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a remote schema for a google distance matrix API to calculate the travel time to a list of locations, currently it calls this per location.
If there was an option to turn on batched requests to remote schemas we maybe able to reduce the number of calls to this service, for example from 10 (per page) to just 1.
I think the only way we could do this currently would be to have a direct query rather than it being contextual to the location which would mean two separate requests from the front end instead of one, one to get the locations and another to get their travel time.
Apollo server supports batch requests as Query Batching.
This has also been mentioned here #1812 but likely from a client context rather than via remote schema.
The text was updated successfully, but these errors were encountered:
We have a remote schema for a google distance matrix API to calculate the travel time to a list of locations, currently it calls this per location.
If there was an option to turn on batched requests to remote schemas we maybe able to reduce the number of calls to this service, for example from 10 (per page) to just 1.
I think the only way we could do this currently would be to have a direct query rather than it being contextual to the location which would mean two separate requests from the front end instead of one, one to get the locations and another to get their travel time.
Apollo server supports batch requests as Query Batching.
This has also been mentioned here #1812 but likely from a client context rather than via remote schema.
The text was updated successfully, but these errors were encountered: