-
Notifications
You must be signed in to change notification settings - Fork 786
Query composition #100
Comments
Another interesting read: facebook/relay#309 |
@stubailo I'd love to get your thoughts on this as well |
Just shipped some docs about this! http://docs.apollostack.com/apollo-client/fragments.html Perhaps we should add something React-specific to the docs as well, like attaching fragments as static properties on the components? |
Right now the most helpful situation for me is if I have a query and a mutation that updates the query. Since I need to fetch the same fields in both, I'd like to use a fragment. I think one thing that could be sad though is if you have to make a container or something heavy just to attach a fragment. I feel like ideally it could just be a static React component property or something? |
Related: #122 |
Closing in favor of common discussion in #140 |
Similarly to how query composition works in Relay, it would be neat to be able to compose queries using fragments defined in child components.
A good overview on how Query composition is handled by Relay:
The text was updated successfully, but these errors were encountered: