Query
query SourceChangelog($entryId: String!, $sourceId: String!) {
sourceChangelog(entryId: $entryId, sourceId: $sourceId) {
edges {
cursor
node {
apiVersion {
__typename
}
changedProperties {
__typename
}
changeType
contributor
endpoint {
__typename
}
endpointId
}
}
nodes {
apiVersion {
allowedOrigins
applications {
__typename
}
authentication
cardDefinitions {
__typename
}
clusters {
__typename
}
createdAt
}
changedProperties {
current {
__typename
... on TextValue {
__typename
}
}
previous {
__typename
... on TextValue {
__typename
}
}
propertyId
}
changeType
contributor
endpoint {
activeContent
apiVersion {
__typename
}
apiVersionId
cardDefinitions {
__typename
}
description
displayName
}
endpointId
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Variables
{
"entryId": "string",
"sourceId": "string"
}Response
{
"data": {
"sourceChangelog": {
"edges": [
{
"cursor": "string",
"node": {
"apiVersion": {
"__typename": "ApiVersion"
},
"changedProperties": [
{
"__typename": "PropertyChange"
}
],
"changeType": "CREATED",
"contributor": "value",
"endpoint": {
"__typename": "Endpoint"
},
"endpointId": "value"
}
}
],
"nodes": [
{
"apiVersion": {
"allowedOrigins": [
"value"
],
"applications": {
"__typename": "ApplicationsConnection"
},
"authentication": "PROTECTED",
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"clusters": {
"__typename": "ClustersConnection"
},
"createdAt": "value"
},
"changedProperties": [
{
"current": {
"__typename": "TextValue"
},
"previous": {
"__typename": "TextValue"
},
"propertyId": "string"
}
],
"changeType": "CREATED",
"contributor": "value",
"endpoint": {
"activeContent": "value",
"apiVersion": {
"__typename": "ApiVersion"
},
"apiVersionId": "id",
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"description": "string",
"displayName": "string"
},
"endpointId": "value"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}Queries
sourceChangelog
Lists the changes to one source entry, newest first by default. A property filter also limits changedProperties.
QUERY
sourceChangelog(after: String, entryId: String!, first: Int, sort: [ChangelogSortInput!], sourceId: String!, where: ChangelogFilterInput): SourceChangelogConnectionArguments
after
String
Returns the elements in the list that come after the specified cursor.
entryId
String!
required
Raw id of the source entry (SourceEntry.entryId). The entry doesn't have to exist any more.
first
Int
Returns the first n elements from the list.
sort
Sort keys: TIMESTAMP, VERSION or both, each once. Null or empty sorts by TIMESTAMP descending.
sourceId
String!
required
Raw id of the data source (e.g. products), not the global DataSource.id.
where
Filters the changes, as a ChangelogFilterInput; all its constraints apply. Null returns every change.
Returns
edges
A list of edges.
nodes
A flattened list of the nodes.
pageInfo
Information to aid in pagination.
totalCount
Long!
Query
query SourceChangelog($entryId: String!, $sourceId: String!) {
sourceChangelog(entryId: $entryId, sourceId: $sourceId) {
edges {
cursor
node {
apiVersion {
__typename
}
changedProperties {
__typename
}
changeType
contributor
endpoint {
__typename
}
endpointId
}
}
nodes {
apiVersion {
allowedOrigins
applications {
__typename
}
authentication
cardDefinitions {
__typename
}
clusters {
__typename
}
createdAt
}
changedProperties {
current {
__typename
... on TextValue {
__typename
}
}
previous {
__typename
... on TextValue {
__typename
}
}
propertyId
}
changeType
contributor
endpoint {
activeContent
apiVersion {
__typename
}
apiVersionId
cardDefinitions {
__typename
}
description
displayName
}
endpointId
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Variables
{
"entryId": "string",
"sourceId": "string"
}Response
{
"data": {
"sourceChangelog": {
"edges": [
{
"cursor": "string",
"node": {
"apiVersion": {
"__typename": "ApiVersion"
},
"changedProperties": [
{
"__typename": "PropertyChange"
}
],
"changeType": "CREATED",
"contributor": "value",
"endpoint": {
"__typename": "Endpoint"
},
"endpointId": "value"
}
}
],
"nodes": [
{
"apiVersion": {
"allowedOrigins": [
"value"
],
"applications": {
"__typename": "ApplicationsConnection"
},
"authentication": "PROTECTED",
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"clusters": {
"__typename": "ClustersConnection"
},
"createdAt": "value"
},
"changedProperties": [
{
"current": {
"__typename": "TextValue"
},
"previous": {
"__typename": "TextValue"
},
"propertyId": "string"
}
],
"changeType": "CREATED",
"contributor": "value",
"endpoint": {
"activeContent": "value",
"apiVersion": {
"__typename": "ApiVersion"
},
"apiVersionId": "id",
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"description": "string",
"displayName": "string"
},
"endpointId": "value"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": "value"
}
}
}Was this page helpful?