SHARE
TWEET

Untitled

a guest May 22nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mutation($upInput : AdvertInput!,$editToken: String!) {
  2.   updateAdvert(advert: $upInput,editToken: $editToken){
  3.       id
  4.       title
  5.       price
  6.       mainPhoto
  7.       description
  8.       author {
  9.         fullName
  10.         phoneNumber
  11.         eMail
  12.         location      
  13.     }
  14.       category {
  15.         id
  16.         name
  17.         description
  18.       }
  19.   }
  20. }
  21.  
  22. {
  23.   "upInput" : {
  24.     "categoryId" : "1",
  25.     "description" : "my description",
  26.     "email":"jakubby@gmail.com",
  27.     "fullName" : "jakub brodzinski",
  28.     "location": "Wroclaw",
  29.     "phoneNumber" : "34214312",
  30.     "price" : "15",
  31.     "title" : "Title"
  32.   },
  33.   "editToken":"123456789"
  34. }  
  35.  
  36.  
  37. mutation($editToken: String!) {
  38.   deleteAdvert(editToken : $editToken)
  39. }
  40.  
  41. {
  42.   "editToken" : "123456789"
  43. }
  44.  
  45.  
  46. mutation($adInput : AdvertInput!) {
  47.   addAdvert(advert: $adInput){
  48.     advert{
  49.       id
  50.       title
  51.       price
  52.       mainPhoto
  53.       description
  54.       author {
  55.         fullName
  56.         phoneNumber
  57.         eMail
  58.         location      
  59.     }
  60.       category {
  61.         id
  62.         name
  63.         description
  64.       }
  65.     }
  66.     editToken
  67.   }
  68. }
  69.  
  70. {
  71.   "adInput" : {
  72.     "categoryId" : "1",
  73.     "description" : "my description",
  74.     "email":"jakubby@gmail.com",
  75.     "fullName" : "jakub brodzinski",
  76.     "location": "Wroclaw",
  77.     "phoneNumber" : "34214312",
  78.     "price" : "15",
  79.     "title" : "Title"
  80.   }
  81. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top