Skip to content

Instantly share code, notes, and snippets.

@danstarns
Created April 10, 2022 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danstarns/0e66686efdf9d0b70635abc2f54bf5f7 to your computer and use it in GitHub Desktop.
Save danstarns/0e66686efdf9d0b70635abc2f54bf5f7 to your computer and use it in GitHub Desktop.
create-movies-example-gql
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