tabvn

Untitled

Jul 10th, 2019
431
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. password: "admin"
  24. ){
  25. id
  26. firstName
  27. lastName
  28. email
  29. created
  30. updated
  31. }
  32. }
  33.  
  34. mutation updateUser{
  35. updateUser(id:1, input: {firstName: "Toan", lastName:"Nguyen Dinh 1", email: "[email protected]"}){
  36. id
  37. firstName
  38. lastName
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment