query DestinationEntries($destinationId: String!, $endpoint: String!, $version: Int!) {
destinationEntries(destinationId: $destinationId, endpoint: $endpoint, version: $version) {
edges {
cursor
node {
content
entryId
meta {
__typename
}
}
}
nodes {
content
entryId
meta {
language
segments {
__typename
}
segmentTags
type
updatedAt
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}{
"destinationId": "string",
"endpoint": "string",
"version": 1
}{
"data": {
"destinationEntries": {
"edges": [
{
"cursor": "string",
"node": {
"content": "value",
"entryId": "string",
"meta": {
"__typename": "DestinationEntryMeta"
}
}
}
],
"nodes": [
{
"content": "value",
"entryId": "string",
"meta": {
"language": "string",
"segments": {
"__typename": "SegmentsConnection"
},
"segmentTags": [
"string"
],
"type": "string",
"updatedAt": "value"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}destinationEntries
Lists the card entries one endpoint of a destination’s API version serves, shaped as that endpoint exposes them, with filtering, sorting and forward paging. Select totalCount only when you need it. Fails with NOT_FOUND for an unknown destination version or endpoint and with BAD_USER_INPUT for an invalid argument.
destinationEntries(after: String, destinationId: String!, endpoint: String!, first: Int, language: String, sort: [SortInput!], version: Int!, where: Predicate): DestinationEntriesConnectionArguments
Returns the elements in the list that come after the specified cursor.
Raw id of the destination (Destination.safeName, e.g. products), not the global Destination.id. Case-insensitive.
Name of the endpoint in the version's API URL (Endpoint.safeName), not the global Endpoint.id. Case-insensitive.
Returns the first n elements from the list.
Output language code (e.g. en) of the content, also used by localized properties in where and sort. One of the languages the API version publishes; null uses the version's default language.
Sort keys, applied in order: a card property the endpoint exposes (by id or alias), id 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.
Number of the destination's API version (ApiVersion.version), from 1. Versions that were never published are included; versions being deleted aren't.
Filters the endpoint's entries, as a Predicate over the card properties and relations the endpoint exposes, named by id or by their alias in the endpoint, plus id (the entry id, as text) and @updatedAt (when the entry last changed, as a timestamp). segment takes only segments the endpoint's segment filters include or exclude, and lifecycle is rejected. Null returns every entry the endpoint serves.
Returns
A list of edges.
A flattened list of the nodes.
Information to aid in pagination.
query DestinationEntries($destinationId: String!, $endpoint: String!, $version: Int!) {
destinationEntries(destinationId: $destinationId, endpoint: $endpoint, version: $version) {
edges {
cursor
node {
content
entryId
meta {
__typename
}
}
}
nodes {
content
entryId
meta {
language
segments {
__typename
}
segmentTags
type
updatedAt
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}{
"destinationId": "string",
"endpoint": "string",
"version": 1
}{
"data": {
"destinationEntries": {
"edges": [
{
"cursor": "string",
"node": {
"content": "value",
"entryId": "string",
"meta": {
"__typename": "DestinationEntryMeta"
}
}
}
],
"nodes": [
{
"content": "value",
"entryId": "string",
"meta": {
"language": "string",
"segments": {
"__typename": "SegmentsConnection"
},
"segmentTags": [
"string"
],
"type": "string",
"updatedAt": "value"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}Was this page helpful?