Query
query SourceLastChangedAt($sourceIds: [String!]!) {
sourceLastChangedAt(sourceIds: $sourceIds) {
changedAt
source {
cardDefinitions {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
createdAt
dataProviders {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
deletedAt
description
entries {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
}
sourceId
}
}Variables
{
"sourceIds": [
"string"
]
}Response
{
"data": {
"sourceLastChangedAt": [
{
"changedAt": "value",
"source": {
"cardDefinitions": {
"edges": [
{
"__typename": "CardDefinitionsEdge"
}
],
"nodes": [
{
"__typename": "CardDefinition"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"createdAt": "value",
"dataProviders": {
"edges": [
{
"__typename": "DataProvidersEdge"
}
],
"nodes": [
{
"__typename": "DataProvider"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"deletedAt": "value",
"description": "string",
"entries": {
"edges": [
{
"__typename": "SourceEntriesEdge"
}
],
"nodes": [
{
"__typename": "SourceEntry"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": "value"
}
},
"sourceId": "string"
}
]
}
}Queries
sourceLastChangedAt
When each requested data source last changed: the time of its latest entry change (CREATED, UPDATED, DELETED or EXPIRED). Publish and segment changes don’t count. A source without entry changes is left out.
QUERY
sourceLastChangedAt(sourceIds: [String!]!): [SourceTimestamp!]!Arguments
sourceIds
[String!]!
required
Raw ids of the data sources (e.g. products), at most 100. Each must be configured.
Returns
[SourceTimestamp!]!
changedAt
When the source's latest changelog event happened.
source
The data source this timestamp is for.
sourceId
String!
Raw id of the data source, as sourceIds takes it.
Query
query SourceLastChangedAt($sourceIds: [String!]!) {
sourceLastChangedAt(sourceIds: $sourceIds) {
changedAt
source {
cardDefinitions {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
createdAt
dataProviders {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
deletedAt
description
entries {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
}
sourceId
}
}Variables
{
"sourceIds": [
"string"
]
}Response
{
"data": {
"sourceLastChangedAt": [
{
"changedAt": "value",
"source": {
"cardDefinitions": {
"edges": [
{
"__typename": "CardDefinitionsEdge"
}
],
"nodes": [
{
"__typename": "CardDefinition"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"createdAt": "value",
"dataProviders": {
"edges": [
{
"__typename": "DataProvidersEdge"
}
],
"nodes": [
{
"__typename": "DataProvider"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"deletedAt": "value",
"description": "string",
"entries": {
"edges": [
{
"__typename": "SourceEntriesEdge"
}
],
"nodes": [
{
"__typename": "SourceEntry"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": "value"
}
},
"sourceId": "string"
}
]
}
}Was this page helpful?