Skip to content
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

Nested mutations #34

Open
JakeIwen opened this issue Dec 22, 2017 · 0 comments
Open

Nested mutations #34

JakeIwen opened this issue Dec 22, 2017 · 0 comments
Assignees
Labels

Comments

@JakeIwen
Copy link
Collaborator

I have made a GQL 'Activity' model. I want comments, bounces etc to be associated w/ an Activity when they are created. Looks like the answer is Nested mutations (Yes, it COULD be done via BT-API, but thats more room for error) .

https://www.graph.cool/docs/reference/graphql-api/mutation-api-ol0yuoz6go/#nested-create-mutations

Problem is, I cannot find the code of ours that is analogous to this:
image

I see how making a nested mutation might be possible using fetch() like we do in our API,
But is there a way to create both Bounce and an Activity mutation at the same time? Preferable within a JS Relay.mutation Class?

image

@carlpeaslee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants