Advertisement
tabvn

Untitled

Jul 10th, 2019
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. # Write your query or mutation here
  2. query me {
  3. me {
  4. id
  5. firstName
  6. }
  7. }
  8. query users{
  9. users{
  10. id
  11. firstName
  12. lastName
  13. email
  14. created
  15. updated
  16. }
  17. }
  18.  
  19. mutation register {
  20. register(
  21. firstName: "Toan"
  22. lastName: "Nguyen Dinh"
  23. email: "toan@tabvn.com"
  24. password: "admin"
  25. ){
  26. id
  27. firstName
  28. lastName
  29. email
  30. created
  31. updated
  32. }
  33. }
  34.  
  35. mutation updateUser{
  36. updateUser(id:1, input: {firstName: "Toan", lastName:"Nguyen Dinh 1", email: "toan@tabvn.com"}){
  37. id
  38. firstName
  39. lastName
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement