pointsOfInterest
Query
Search for points of interest based on a set of filters.
Response
Returns PointOfInterestConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterPointOfInterestInput | Filter points of interest by id or name. |
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 | [PointOfInterestSort!]! | The field and direction by which to sort the results Default: |
Example
query pointsOfInterest( $filter: FilterPointOfInterestInput, $first: Int!, $after: String, $sort: [PointOfInterestSort!]!) { pointsOfInterest( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id name metadata } cursor } totalCount }}{ "first": 20, "sort": [ { "field": "NAME", "direction": "ASC" }, { "field": "ID", "direction": "ASC" } ]}{ "data": { "pointsOfInterest": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "9bf022b1-0c59-8550-8625-aca917feaaeb", "name": "name-9f71", "metadata": {} }, "cursor": "cursor-6a1d" } ], "totalCount": 976 } }}