Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Write your query or mutation here
- # Write your query or mutation here
- query shops{
- shops(user_id:1, filter:{limit:20, offset: 0}){
- id
- title
- domain
- platform
- }
- }
- mutation deleteEntity{
- deleteEntity(id: 1)
- }
- mutation createShop{
- createShop(input: {title: "Test Shop", domain: "http://dexp2.io", platform: "woocommerce"}){
- id
- title
- domain
- platform
- }
- }
- query users{
- users(filter:{limit:10, offset:0}){
- id
- first_name
- last_name
- email
- password
- phone
- address
- created_at
- }
- }
- query me{
- me{
- id
- first_name
- last_name
- email
- password
- phone
- address
- created_at
- }
- }
- mutation createUser{
- createUser(input: {first_name:"Toan", last_name:"Nguyen Dinh", email: "toan@drupalexp.com", password: "admin", phone: "", address: ""}){
- id
- first_name
- last_name
- password
- email
- }
- }
- mutation updateUser{
- updateUser(id:1, input:{first_name:"Toan", last_name: "Nguyen Dinh", email:"tom@tabvn.com", phone: "", address: ""}){
- id
- first_name
- last_name
- }
- }
- mutation login{
- login(email: "toan@drupalexp.com", password: "admin"){
- token
- expired_at
- user{
- id
- avatar
- is_online
- first_name
- last_name
- email
- address
- created_at
- updated_at
- }
- }
- }
- mutation logout{
- logout
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement