Skip to content

Instantly share code, notes, and snippets.

@Mefistophell
Last active August 17, 2018 09:34
Show Gist options
  • Save Mefistophell/e7498bb5d1974639a215f89d5a14b3ad to your computer and use it in GitHub Desktop.
Save Mefistophell/e7498bb5d1974639a215f89d5a14b3ad to your computer and use it in GitHub Desktop.
apollo-graphql-api
# addUser mutation
mutation addNewUser($username: String!, $password: String!, $fullName: String) {
addUser(username: $username, password: $password, fullName: $fullName) {
username
fullName
}
}
{
getUser(id: 1) {
username
fullName
phone
email
}
getPostsByUserId(user_id: 1) {
title
content
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment