classafMongo::OpReplyResponse
sys::Obj afMongo::OpReplyResponse
(Advanced) Wraps a response from MongoDB.
@See https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/#op-reply.
- cursorId
const Int cursorId
The Mongo cursor this reply corresponds to.
- cursorPos
const Int cursorPos
The cursor position.
- document
[Str:Obj?]? document(Bool checked := true)
Returns the first document.
Throws an Err if
checked
anddocuments
is empty. Always throws an Err if there is more than 1 document.- documents
Str:Obj?[] documents { internal set }
The returned MongoDB BSON documents.
- flags
const OpReplyFlags flags
Response information.