This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a query to retrieve a list of locations.
The queryLocations()
function builds a query to retrieve a list of up to 1,000 locations and returns a LocationsQueryBuilder
object.
The returned object contains the query definition which is typically used to run the query using the find()
function.
You can refine the query by chaining LocationsQueryBuilder
functions onto the query. LocationsQueryBuilder
functions enable you to sort, filter, and control the results that queryLocations()
returns. The functions that are chained to queryLocations()
are applied in the order they are called.
queryLocations()
runs with the following LocationsQueryBuilder
defaults that you can override:
skip
: 0
limit
: 50
The following QueryLocationsBuilder
functions are supported for the queryLocations()
function. For a full description of the Locations object, see the object returned for the items
property in LocationsQueryResult
.