dataSources
Query
Search for data sources based on a set of filters.
Response
Returns DataSourceConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterDataSourceInput | Filter data sources by type and/or position. |
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 | [DataSourceSort!]! | The field and direction by which to sort the results Default: |
Example
query dataSources( $filter: FilterDataSourceInput, $first: Int!, $after: String, $sort: [DataSourceSort!]!) { dataSources( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id name type labels } cursor } totalCount }}{ "first": 20, "sort": [ { "field": "NAME", "direction": "ASC" }, { "field": "ID", "direction": "ASC" } ]}{ "data": { "dataSources": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "d12da500-1c9d-8517-8064-a811ebcd3707", "name": "name-549e", "type": "FOLDER", "labels": [ "labels-516b" ] }, "cursor": "cursor-5c95" } ], "totalCount": 648 } }}