Last active
August 17, 2018 09:34
-
-
Save Mefistophell/e7498bb5d1974639a215f89d5a14b3ad to your computer and use it in GitHub Desktop.
apollo-graphql-api
This file contains 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
# addUser mutation | |
mutation addNewUser($username: String!, $password: String!, $fullName: String) { | |
addUser(username: $username, password: $password, fullName: $fullName) { | |
username | |
fullName | |
} | |
} |
This file contains 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
{ | |
getUser(id: 1) { | |
username | |
fullName | |
phone | |
} | |
getPostsByUserId(user_id: 1) { | |
title | |
content | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment