Skip to content

dataSources

Query

Search for data sources based on a set of filters.

Response

Returns DataSourceConnection

Arguments

NameTypeDescription
filterFilterDataSourceInput

Filter data sources by type and/or position.

firstInt!

Returns the first n elements from the list.

Default: 20

afterString

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: [{ field: NAME, direction: ASC }, { field: ID, direction: ASC }]

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
}
}