Lookup docs by ID with Legacy QL
Retrieve a single document by its unique identifier. This is the most efficient way to fetch a specific document when you know its ID.
Authorizations
Authentication using either an API key or JWT token in the Authorization header
Headers
Optional transaction ID for ensuring read consistency. The operation will only proceed if the Big Peer's transaction ID is at least this value, preventing reads of stale data.
Body
Request parameters for retrieving a specific document by its ID. This is the most efficient way to fetch a single document when you know its identifier.
The name of the collection containing the document
The unique identifier of the document to retrieve
When true, any attachment fields will be formatted for easier consumption
Controls how the document data is serialized in the response
latestValues
, latestValuesAndTypes
Response
Represents a document in the Ditto store. Documents are schema-free and can contain nested fields of various CRDT types for conflict-free replication.
The document's content, which can include any valid JSON data types and special Ditto CRDT types
The unique identifier for this document within its collection
The transaction ID at which this document was retrieved, useful for consistency tracking
Was this page helpful?