Skip to content

Instantly share code, notes, and snippets.

@danstarns
Created April 10, 2022 18:09
Show Gist options
  • Select an option

  • Save danstarns/0e66686efdf9d0b70635abc2f54bf5f7 to your computer and use it in GitHub Desktop.

Select an option

Save danstarns/0e66686efdf9d0b70635abc2f54bf5f7 to your computer and use it in GitHub Desktop.

Revisions

  1. danstarns created this gist Apr 10, 2022.
    28 changes: 28 additions & 0 deletions create-movies-example-gql.gql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    mutation {
    createPeople(
    input: [
    {
    name: "Tom Hanks"
    movies: {
    create: [
    {
    node: {
    name: "Forrest Gump"
    genres: {
    create: [
    { node: { name: "Drama" } }
    { node: { name: "Romance" } }
    ]
    }
    }
    }
    ]
    }
    }
    ]
    ) {
    people {
    name
    }
    }
    }