module MongoReply: sig
.. end
This module defines reply that MongoDB sends back for a query.
type
t
type of reply sent from MongoDB
val decode_reply : string -> t
decode a string received from MongoDB to a MongoReply
Values from a MongoReply
: t -> MongoHeader.t
get the MongoHeader out of a MongoReply
val get_response_flags : t -> int32
get the response_flags field out of a MongoReply
val get_cursor : t -> int64
get the cursor_id out of a MongoReply
val get_starting_from : t -> int32
get the starting_from field out of a MongoReply
val get_num_returned : t -> int32
get the number of items returned out of a MongoReply
val get_document_list : t -> Bson.t list
get the document list returned out of a MongoReply
Operations
val to_string : t -> string
convert a MongoReply to a human readable string