Skip to content

Instantly share code, notes, and snippets.

@sandboxws
Created March 17, 2020 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandboxws/5d3e8efaedbc9877e833f2c27adce86d to your computer and use it in GitHub Desktop.
Save sandboxws/5d3e8efaedbc9877e833f2c27adce86d to your computer and use it in GitHub Desktop.
GetAddOns as a host
{
"operationName": "GetAddOns",
"variables": {
"hostId": "5dd43565611ffd0029bc80b2",
"listingId": "5e6b8d8ed39f1e00505f0294",
"currency": "CAD",
"offset": 0,
"limit": 15,
"state": "active"
},
"query": "query GetAddOns($hostId: ID!, $listingId: ID!, $currency: CurrencyCode, $limit: Int, $offset: Int, $state: String) {
host(id: $hostId) {
addOns: addOns(state: $state, listingId: $listingId, currency: $currency) {
totalCount
nodes(offset: $offset, limit: $limit) {
id
name
description
currency
rates {
id
name
description
sku
state
display_price: displayPrice
price
availability
optionName
_type: type
src_currency: srcCurrency
imageUrl
min_tickets: minQuantity
max_tickets: maxQuantity
capacities {
id
count_attending: countAttending
count_available: countAvailable
event_id: timeSlotId
rate_id: rateId
_type: type
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
}
"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment