Created
March 17, 2020 17:23
-
-
Save sandboxws/5d3e8efaedbc9877e833f2c27adce86d to your computer and use it in GitHub Desktop.
GetAddOns as a host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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