query DataSourceById($id: ID!) {
dataSourceById(id: $id) {
cardDefinitions {
edges {
cursor
node {
__typename
}
}
nodes {
activationStatus {
__typename
}
activePropertySet {
__typename
}
allowsEnrichment
cardsCount
createdAt
createdByUser
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
createdAt
dataProviders {
edges {
cursor
node {
__typename
}
}
nodes {
accessToken {
__typename
}
createdAt
createdByUser
dataSources {
__typename
}
id
isDeleted
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
deletedAt
description
entries {
edges {
cursor
node {
__typename
}
}
nodes {
createdAt
entryId
id
properties {
__typename
}
source {
__typename
}
sourceId
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}
}{
"id": "id"
}{
"data": {
"dataSourceById": {
"cardDefinitions": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "CardDefinition"
}
}
],
"nodes": [
{
"activationStatus": {
"__typename": "WorkflowStatus"
},
"activePropertySet": {
"__typename": "PropertySet"
},
"allowsEnrichment": true,
"cardsCount": "value",
"createdAt": "value",
"createdByUser": "value"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
},
"createdAt": "value",
"dataProviders": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "DataProvider"
}
}
],
"nodes": [
{
"accessToken": {
"__typename": "AccessToken"
},
"createdAt": "value",
"createdByUser": "value",
"dataSources": {
"__typename": "DataSourcesConnection"
},
"id": "id",
"isDeleted": true
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
},
"deletedAt": "value",
"description": "string",
"entries": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "SourceEntry"
}
}
],
"nodes": [
{
"createdAt": "value",
"entryId": "string",
"id": "id",
"properties": [
{
"__typename": "Property"
}
],
"source": {
"__typename": "DataSource"
},
"sourceId": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}
}dataSourceById
Gets a source by its global id. Fails with NotFoundError when no source has it.
dataSourceById(id: ID!): DataSource!Arguments
Global id of the source (DataSource.id).
Returns
Card definitions built on the source, archived ones included.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
When the source was created (UTC).
Applications that can write to the source: every live application with write:sources (or the older import-datasource scope) on this source or on all sources, ordered by name. Empty for an archived source.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
When deleteDataSource archived the source (UTC). Null = live. createDataSource with the same id restores it.
Free-text note about the source.
The source's entries with typed properties, filters and forward paging, as sourceEntries returns them. Paged: select the items under nodes.
Returns the elements in the list that come after the specified cursor.
Returns the first n elements from the list.
Language code (e.g. en) that localized properties use in where, sort and facets. Required when any of them uses a localized property; there's no fallback language. Property values still return every stored language.
Sort keys, applied in order: a source property id, id, @createdAt or @updatedAt. At most 16 keys, each once (case-insensitive), with id only as the last key. Null or empty sorts by entry id ascending, and entry id ascending breaks ties. Missing values sort last.
Filters the source entries, as a Predicate over source properties; segment, relation and lifecycle aren't supported. Null returns every entry of the source.
Number of entries in the source. -1, with an error in the response, when the count can't be read.
When an entry of the source was last created, changed or deleted. Null when no change has been recorded.
Folders of the source at every level, its root folder included.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Global id of the source: base64 of DataSource:<raw id>. dataSourceById and the dataSourceId arguments of this API take it. The raw id (e.g. products) is what REST /v1/sources/{sourceId} and DataSourceProperty.dataSourceId use.
Name of the source, shown in Studio. Renaming the source renames its root folder too.
Groups that arrange the source properties of the source in Studio. A folder uses them unless it sets its own.
Sources linked to this one through relatedDataSources on createDataSource or updateDataSource.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Source properties of the source, most recently changed first. Source properties being deleted are left out.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Language codes found in the source's data.
Display names of the source's source properties, up to 1000. Use sourceProperties instead.
Lifecycle state of the source. See DataSourceStatus.
Id of the tenant that owns the source.
Time an entry may go without a content change before it is deleted. Null = entries are kept.
Kind of source: GENERIC holds data entries, MEDIA holds uploaded files. Set when the source is created.
When the source last changed (UTC).
query DataSourceById($id: ID!) {
dataSourceById(id: $id) {
cardDefinitions {
edges {
cursor
node {
__typename
}
}
nodes {
activationStatus {
__typename
}
activePropertySet {
__typename
}
allowsEnrichment
cardsCount
createdAt
createdByUser
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
createdAt
dataProviders {
edges {
cursor
node {
__typename
}
}
nodes {
accessToken {
__typename
}
createdAt
createdByUser
dataSources {
__typename
}
id
isDeleted
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
deletedAt
description
entries {
edges {
cursor
node {
__typename
}
}
nodes {
createdAt
entryId
id
properties {
__typename
}
source {
__typename
}
sourceId
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}
}{
"id": "id"
}{
"data": {
"dataSourceById": {
"cardDefinitions": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "CardDefinition"
}
}
],
"nodes": [
{
"activationStatus": {
"__typename": "WorkflowStatus"
},
"activePropertySet": {
"__typename": "PropertySet"
},
"allowsEnrichment": true,
"cardsCount": "value",
"createdAt": "value",
"createdByUser": "value"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
},
"createdAt": "value",
"dataProviders": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "DataProvider"
}
}
],
"nodes": [
{
"accessToken": {
"__typename": "AccessToken"
},
"createdAt": "value",
"createdByUser": "value",
"dataSources": {
"__typename": "DataSourcesConnection"
},
"id": "id",
"isDeleted": true
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
},
"deletedAt": "value",
"description": "string",
"entries": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "SourceEntry"
}
}
],
"nodes": [
{
"createdAt": "value",
"entryId": "string",
"id": "id",
"properties": [
{
"__typename": "Property"
}
],
"source": {
"__typename": "DataSource"
},
"sourceId": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}
}Was this page helpful?