zones
Query
Find zones based on a set of filters
Response
Returns ZoneConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterZoneInput | Filter zones based on the specified filters. |
first | Int! | Returns the first n elements from the list. Default: |
after | String | Returns the elements in the list that come after the specified cursor. |
sort | [ZonesSort!]! | The field and direction by which to sort the results Default: |
Example
query zones( $filter: FilterZoneInput, $first: Int!, $after: String, $sort: [ZonesSort!]!) { zones( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id name active createdAt updatedAt } cursor } totalCount }}{ "first": 20, "sort": [ { "field": "NAME", "direction": "ASC" }, { "field": "ID", "direction": "ASC" } ]}{ "data": { "zones": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "9bc230c0-d8c6-87f8-89d2-790b14007ed2", "name": "name-bf20", "active": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z" }, "cursor": "cursor-69a7" } ], "totalCount": 10 } }}