Listing Mutation
type Mutation {
updateListing(listing: ListingInput): Listing
}
Here are details on the capabilities of different mutations
updateListing
: Is used to perform update on an listing with the help of a listing Id, this will help is performing some basic operations listed below
Schema Definition
input ListingInput {
id: String!
action: LISTING_ACTIONS!
}
enum LISTING_ACTIONS {
ACTIVATE_LISTING
DEACTIVATE_LISTING
ARCHIVE_LISTING
UNARCHIVE_LISTING
}
Below we are providing a full example how to update listing, all this information is not required, only the ones that was using ! notation previously.
mutation {
updateListing(
listing: {
id: "42b751a6-3eb6-4e48-a0d1-8e9959151672"
action: ACTIVATE_LISTING
}
) {
id
}
}
Last updated
Was this helpful?