Skip to main content

appConnectorCursor

Requires at least one of the permissions customers:customer:read, inventory:stock_level:read, inventory:warehouse:read, payments:payment:read, products:product:read, purchase:grn:read, purchase:purchase_invoice:read, purchase:purchase_order:read, sales:credit_note:read, sales:quote:read, sales:sales_invoice:read, sales:sales_order:read, sales:shipment:read or suppliers:supplier:read.

Where the calling app's sync of one resource, in one direction, stands. Needs write_connector_sync.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query AppConnectorCursor($direction: ConnectorSyncDirection!, $resource: String!) {
appConnectorCursor(direction: $direction, resource: $resource) {
cursor
direction
resource
updatedAt
watermark
}
}

Variables:

{
"direction": "INBOUND",
"resource": "string"
}

Response:

{
"data": {
"appConnectorCursor": {
"cursor": "string",
"direction": "INBOUND",
"resource": "string",
"updatedAt": "2025-01-15T00:00:00Z",
"watermark": "2025-01-15T00:00:00Z"
}
}
}
appConnectorCursor(
direction: ConnectorSyncDirection!
resource: String!
): ConnectorCursorView

Arguments​

appConnectorCursor.direction ● ConnectorSyncDirection! non-null enum​

Which way the sync moves data.

appConnectorCursor.resource ● String! non-null scalar​

What kind of record, e.g. invoice.

Type​

ConnectorCursorView object​

Where an installed app's sync of one resource, in one direction, stands.