-
Notifications
You must be signed in to change notification settings - Fork 85
GraphQL Exemplos de Query
Theo Mendes edited this page Mar 5, 2021
·
1 revision
query {
search(q: "Rio de Janeiro", pagination: { limit: 20, page: 1 }) {
pagination {
count
current
hasNext
}
filters {
productType {
label
filter
count
}
cities {
label
filter
count
}
}
meta {
count
query
countWithAvailability
countHotel
countTicket
countPackage
}
results {
id
sku
name
url
category
description
smallDescription
price {
currency
amount
originalAmount
taxes {
originalAmount
originalCurrency
}
}
address {
city
state
country
geoLocation {
lat
lon
}
}
tags {
label
slug
}
gallery(limit: 10) {
url(quality: HIGH, resolution: ORIGINAL)
description
}
amenities(limit: 10) {
name
category
}
isAvailable
}
}
}
query {
search(q: "Rio de Janeiro",
pagination: {
limit: 20,
page: 1
},
filters: {
productType: {
values: ["product_type_hospedagem"]
operator: OR
}
}) {
# O que deseja retornar
}
}
# Write your query or mutation here
query {
suggestions(q: "Rio de Janeiro", limit: 20) {
total
results {
text
filter
suggestionType
}
}
}