query SourceEntries($sourceId: String!) {
sourceEntries(sourceId: $sourceId) {
edges {
cursor
node {
createdAt
entryId
id
properties {
__typename
}
source {
__typename
}
sourceId
}
}
nodes {
createdAt
entryId
id
properties {
id
updatedAt
value {
__typename
... on TextValue {
__typename
}
}
}
source {
cardDefinitions {
__typename
}
createdAt
dataProviders {
__typename
}
deletedAt
description
entries {
__typename
}
}
sourceId
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}{
"sourceId": "string"
}{
"data": {
"sourceEntries": {
"edges": [
{
"cursor": "string",
"node": {
"createdAt": "value",
"entryId": "string",
"id": "id",
"properties": [
{
"__typename": "Property"
}
],
"source": {
"__typename": "DataSource"
},
"sourceId": "string"
}
}
],
"nodes": [
{
"createdAt": "value",
"entryId": "string",
"id": "id",
"properties": [
{
"id": "string",
"updatedAt": "value",
"value": {
"__typename": "TextValue"
}
}
],
"source": {
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"createdAt": "value",
"dataProviders": {
"__typename": "DataProvidersConnection"
},
"deletedAt": "value",
"description": "string",
"entries": {
"__typename": "SourceEntriesConnection"
}
},
"sourceId": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}sourceEntries
Lists the entries of one data source, with typed property values, filtering, sorting and forward paging.
sourceEntries(after: String, first: Int, language: String, sort: [SortInput!], sourceId: String!, where: Predicate): SourceEntriesConnectionArguments
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.
Raw id of the data source (e.g. products), not the global DataSource.id.
Filters the source entries, as a Predicate over source properties; segment, relation and lifecycle aren't supported. Null returns every entry of the source.
Returns
A list of edges.
The distinct values of one property across every entry that matches the connection's where, each with how many entries have it, with forward paging.
Returns the elements in the list that come after the specified cursor.
Keeps only the values that contain this literal text. Text and list properties only.
Values to leave out before counting and paging, matched exactly and case-sensitively. Text and list properties only.
Returns the first n elements from the list.
Whether contains ignores case. Default false. Values that differ only in case stay separate.
Id of the property whose values are counted: a card property for card entries, a source property for source entries. A localized property uses the connection's language.
What the values are sorted by. Null sorts by COUNT descending, ties by value ascending.
A flattened list of the nodes.
Information to aid in pagination.
query SourceEntries($sourceId: String!) {
sourceEntries(sourceId: $sourceId) {
edges {
cursor
node {
createdAt
entryId
id
properties {
__typename
}
source {
__typename
}
sourceId
}
}
nodes {
createdAt
entryId
id
properties {
id
updatedAt
value {
__typename
... on TextValue {
__typename
}
}
}
source {
cardDefinitions {
__typename
}
createdAt
dataProviders {
__typename
}
deletedAt
description
entries {
__typename
}
}
sourceId
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}{
"sourceId": "string"
}{
"data": {
"sourceEntries": {
"edges": [
{
"cursor": "string",
"node": {
"createdAt": "value",
"entryId": "string",
"id": "id",
"properties": [
{
"__typename": "Property"
}
],
"source": {
"__typename": "DataSource"
},
"sourceId": "string"
}
}
],
"nodes": [
{
"createdAt": "value",
"entryId": "string",
"id": "id",
"properties": [
{
"id": "string",
"updatedAt": "value",
"value": {
"__typename": "TextValue"
}
}
],
"source": {
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"createdAt": "value",
"dataProviders": {
"__typename": "DataProvidersConnection"
},
"deletedAt": "value",
"description": "string",
"entries": {
"__typename": "SourceEntriesConnection"
}
},
"sourceId": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}Was this page helpful?