Skip to main content
TopK collections store documents as key-value pairs. get() provides direct key-based lookup, similar to a key-value store. This operation is optimized for high throughput and low latency.
The result is a key-value mapping: each key is a document ID and each value is a full document as it was upserted into the collection.
If a document with a given ID does not exist in the collection, it is simply omitted from the results - no error is thrown.