Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mutation($upInput : AdvertInput!,$editToken: String!) {
- updateAdvert(advert: $upInput,editToken: $editToken){
- id
- title
- price
- mainPhoto
- description
- author {
- fullName
- phoneNumber
- eMail
- location
- }
- category {
- id
- name
- description
- }
- }
- }
- {
- "upInput" : {
- "categoryId" : "1",
- "description" : "my description",
- "email":"jakubby@gmail.com",
- "fullName" : "jakub brodzinski",
- "location": "Wroclaw",
- "phoneNumber" : "34214312",
- "price" : "15",
- "title" : "Title"
- },
- "editToken":"123456789"
- }
- mutation($editToken: String!) {
- deleteAdvert(editToken : $editToken)
- }
- {
- "editToken" : "123456789"
- }
- mutation($adInput : AdvertInput!) {
- addAdvert(advert: $adInput){
- advert{
- id
- title
- price
- mainPhoto
- description
- author {
- fullName
- phoneNumber
- eMail
- location
- }
- category {
- id
- name
- description
- }
- }
- editToken
- }
- }
- {
- "adInput" : {
- "categoryId" : "1",
- "description" : "my description",
- "email":"jakubby@gmail.com",
- "fullName" : "jakub brodzinski",
- "location": "Wroclaw",
- "phoneNumber" : "34214312",
- "price" : "15",
- "title" : "Title"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement