-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Collapse and Batch queries #520
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
We just had a conversation about what role core can play here. Broadly:
We should carefully trade off against: a. New demands we place on the implementation of GraphQL servers Looping in @josephsavona and @wincent. Are you interested in helping with this? |
👍 |
Thanks for you response @steveluscher |
Can you provide here proper example of merging several |
Relay doesn't support "merging" queries together. Instead, we recommend creating a custom network layer that takes the list of queries passed to I wrote a bit more about how to do this here, but you can use the getID() method on each query request as a key to identify which data goes with which query. |
@josephsavona thanks for clarification. If somebody needs example of |
@nodkz would be cool to publish that as an npm module :-) |
+1 to that. I was going to ask the same :-) I'd help maintain it! On Thu, Apr 21, 2016 at 12:15 PM Joseph Savona notifications@github.com
|
@josephsavona @KyleAMathews So, I spent all current day and made this great thing: https://github.com/nodkz/react-relay-network-layer |
@nodkz awesome! Thanks for publishing this! I'm going to go ahead and close this issue :-) |
I have a
Relay.Route
that defines multiple queries and Relay is making one call forgraphql
for each query.How can I make Relay aggregate those queries in just one request? How this aggregation works?
Thanks in advance!
The text was updated successfully, but these errors were encountered: