Przejdź do głównej zawartości

locations

Paginated locations for the current shop. Supports proximity (near), pickup-only filter (hasPickupEnabled), and locationType filter.

locations(
after: String
first: Int! = 20
hasPickupEnabled: Boolean
locationType: LocationType
near: GeoCoordinateInput
): LocationConnection!

Arguments​

locations.after ● String scalar​

Cursor for pagination

locations.first ● Int! non-null scalar​

Number of locations to return

locations.hasPickupEnabled ● Boolean scalar​

Filter to only pickup-enabled locations (for store picker UI)

locations.locationType ● LocationType enum​

Filter by location type

locations.near ● GeoCoordinateInput input​

Sort locations by proximity to these coordinates

Type​

LocationConnection object​

Paginated location connection