Advertisement
tabvn

Untitled

Jun 12th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. # Write your query or mutation here
  2. # Write your query or mutation here
  3. query shops{
  4. shops(user_id:1, filter:{limit:20, offset: 0}){
  5. id
  6. title
  7. domain
  8. platform
  9. }
  10. }
  11. mutation deleteEntity{
  12. deleteEntity(id: 1)
  13. }
  14. mutation createShop{
  15. createShop(input: {title: "Test Shop", domain: "http://dexp2.io", platform: "woocommerce"}){
  16. id
  17. title
  18. domain
  19. platform
  20. }
  21. }
  22. query users{
  23. users(filter:{limit:10, offset:0}){
  24. id
  25. first_name
  26. last_name
  27. email
  28. password
  29. phone
  30. address
  31. created_at
  32. }
  33. }
  34.  
  35. query me{
  36. me{
  37. id
  38. first_name
  39. last_name
  40. email
  41. password
  42. phone
  43. address
  44. created_at
  45. }
  46. }
  47. mutation createUser{
  48. createUser(input: {first_name:"Toan", last_name:"Nguyen Dinh", email: "toan@drupalexp.com", password: "admin", phone: "", address: ""}){
  49. id
  50. first_name
  51. last_name
  52. password
  53. email
  54. }
  55. }
  56.  
  57.  
  58. mutation updateUser{
  59. updateUser(id:1, input:{first_name:"Toan", last_name: "Nguyen Dinh", email:"tom@tabvn.com", phone: "", address: ""}){
  60. id
  61. first_name
  62. last_name
  63. }
  64. }
  65.  
  66. mutation login{
  67. login(email: "toan@drupalexp.com", password: "admin"){
  68. token
  69. expired_at
  70. user{
  71. id
  72. avatar
  73. is_online
  74. first_name
  75. last_name
  76. email
  77. address
  78. created_at
  79. updated_at
  80. }
  81. }
  82. }
  83.  
  84. mutation logout{
  85. logout
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement