Skip to content

GraphQL Search Package

Daniel Pucciariello edited this page Apr 14, 2021 · 2 revisions

Search Package

Query

query {
    searchPackage(filters: {
        sku: { 
            values: ["LGPKG-1094980-0"]
            operator: OR
        }
    })
}

Exemplo completo

query {
  searchPackage(filters: {
    sku: { 
      values: ["LGPKG-1094980-0"]
      operator: OR
    }
  }) {
    results {
      sku
      name
      description
      startDate
      endDate
      isAvailable
      description
      quantityDescriptors {
        nights
        duration
        durationType
        maxPeople
        maxFreeChildrenAge
      }
      price {
        amount
        originalAmount
        currency
        taxes {
          originalAmount
          originalCurrency
        }
      }
      address {
        city
        country
        geoLocation {
          lat
          lon
        }
      }
      gallery(limit: 10) {
        # Quality: LOW, MEDIUM, HIGH
        # Resolution: LOW, LOWER, ORIGINAL
        url(quality: HIGH, resolution: ORIGINAL)
        description
      }
      amenities(limit: 10) {
        name
        category
      }
    }
  }
}