-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setting up multiple mutations #3231
Comments
Thanks for the suggestion @anthonychung14. This is something that could be handled by using HOC's with |
Just a quick update here - we're going to add a new nested mutation section to the docs shortly. This new section will cover:
|
Looking forward to those docs updates! I'm facing this situation, as well. |
Same!! :) +1 |
+1: have need to mutate parent object, straight after create mutation of object itself. |
Mutations can be more than just 2. So, looking forward for docs updates. |
To help provide a more clear separation between feature requests / discussions and bugs, and to help clean up the feature request / discussion backlog, Apollo Client feature requests / discussions are now being managed under the https://github.com/apollographql/apollo-feature-requests repository. Migrated to: apollographql/apollo-feature-requests#8 |
Intended outcome:
We want to use the
Mutation
component, but conditionally execute on two Mutations (dependent on a prop received by the component it wraps).I can't find documentation or use-cases that demonstrate this. Would this be a better use case for a HOC using
graphql
? or should I have a totally separate mutation function (that does A + B) rather than have one mutation that does A and maybe B?Actual outcome:
Stacking
Mutation
components doesn't seem to be a great use-case if I can just doVersion
The text was updated successfully, but these errors were encountered: