JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.sync.history.list({
...
})[
{
"id": "<string>",
"aggregate_id": "<string>",
"seq": 123,
"type": "<string>",
"data": {}
}
]{
"data": "<unknown>",
"errors": [
{}
],
"success": false
}API Reference
List sync events
List sync events for all aggregates. Keys are aggregate IDs the client already knows about, values are the last known sequence ID. Events with seq > value are returned for those aggregates. Aggregates not listed in the input get their full history.
POST
/
sync
/
history
JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.sync.history.list({
...
})[
{
"id": "<string>",
"aggregate_id": "<string>",
"seq": 123,
"type": "<string>",
"data": {}
}
]{
"data": "<unknown>",
"errors": [
{}
],
"success": false
}