Skip to content

Instantly share code, notes, and snippets.

@rohanBagchi
Created March 23, 2020 18:35
Show Gist options
  • Save rohanBagchi/51222408fb50c9cfb291d2f4aa01eddd to your computer and use it in GitHub Desktop.
Save rohanBagchi/51222408fb50c9cfb291d2f4aa01eddd to your computer and use it in GitHub Desktop.
mutation AddTodo {
insert_todos(objects: {title: "Learning GraphQL", userId: "user-id-1101", complete: false}) {
returning {
complete
date_created
id
title
user {
id
name
email
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment