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
Hi sorry for the direct question, but I can't seem to find an answer to this anywhere. I've already asked the question as an issue in #8094 but thought it better to start a discussion.
I have a GraphQL mutation that creates an item and returns the data that's created. I need to pass some of the created fields into another mutation (or maybe a query). Is this possible? This is almost working but I can't figure out how to get the data between the mutations:
mutation {
createToken(
input: { tokenname: "my token", tokendescription: "my valuable token" }
) {
idrandomdata
}
insert__helloworld_article(objects: [{randomdata: $randomdata , author_id: 1}]) {
returning {
id
}
}
}
So the question is getting "randomdata" from the mutation to insert into the helloworld_article query.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi sorry for the direct question, but I can't seem to find an answer to this anywhere. I've already asked the question as an issue in #8094 but thought it better to start a discussion.
I have a GraphQL mutation that creates an item and returns the data that's created. I need to pass some of the created fields into another mutation (or maybe a query). Is this possible? This is almost working but I can't figure out how to get the data between the mutations:
So the question is getting "randomdata" from the mutation to insert into the helloworld_article query.
Beta Was this translation helpful? Give feedback.
All reactions