-
-
Save tabvn/da3317f3845938971f7bb79872cc3246 to your computer and use it in GitHub Desktop.
g
This file contains hidden or 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
# Write your query or mutation here | |
query me { | |
me { | |
id | |
firstName | |
lastName | |
created | |
updated | |
} | |
} | |
mutation login{ | |
login(email: "[email protected]", password: "admin"){ | |
token | |
expired | |
user{ | |
id | |
firstName | |
lastName | |
created | |
updated | |
} | |
} | |
} | |
query users{ | |
users{ | |
id | |
firstName | |
lastName | |
created | |
updated | |
} | |
} | |
mutation register { | |
register( | |
firstName: "Toan" | |
lastName: "Nguyen Dinh" | |
email: "[email protected]" | |
password: "admin" | |
){ | |
id | |
firstName | |
lastName | |
created | |
updated | |
} | |
} | |
mutation updateUser{ | |
updateUser(id:1, input: {firstName: "Toan", lastName:"Nguyen Dinh 1", email: "[email protected]"}){ | |
id | |
firstName | |
lastName | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment