sites
Query
Find sites based on a set of filters.
Response
Returns SiteConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterSiteInput | Filter sites based on id. |
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 | [SitesSort!]! | The field and direction by which to sort the results Default: |
Example
query sites( $filter: FilterSiteInput, $first: Int!, $after: String, $sort: [SitesSort!]!) { sites( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id name timezone } cursor } totalCount }}{ "first": 20, "sort": [ { "field": "NAME", "direction": "ASC" }, { "field": "ID", "direction": "ASC" } ]}{ "data": { "sites": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "f5e73b52-9179-8799-92de-27516934ea4d", "name": "name-ac75", "timezone": "timezone-4f92" }, "cursor": "cursor-5056" } ], "totalCount": 95 } }}