Created
April 10, 2022 18:09
-
-
Save danstarns/0e66686efdf9d0b70635abc2f54bf5f7 to your computer and use it in GitHub Desktop.
create-movies-example-gql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation { | |
createPeople( | |
input: [ | |
{ | |
name: "Tom Hanks" | |
movies: { | |
create: [ | |
{ | |
node: { | |
name: "Forrest Gump" | |
genres: { | |
create: [ | |
{ node: { name: "Drama" } } | |
{ node: { name: "Romance" } } | |
] | |
} | |
} | |
} | |
] | |
} | |
} | |
] | |
) { | |
people { | |
name | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment