Instance Propertymongokitten 7.10.1MongoCore
projection
The projection document, if any
var projection: Document?The projection document, if any
var projection: Document?import MongoCorestruct OpQueryAn OP_QUERY message is used to query a collection. The message contains a full collection name, a query document, and a projection document. The server will respond with an OP_REPLY message.
struct Documentinit(header: MongoMessageHeader, flags: OpQueryFlags, fullCollectionName: String, numberToSkip: Int32, numberToReturn: Int32, query: Document, projection: Document?) Creates a new OP_QUERY message
init(query: Document, requestId: Int32, fullCollectionName: String, flags: OpQueryFlags = []) Creates a new OP_QUERY message
init(reading buffer: inout ByteBuffer, header: MongoMessageHeader) throws Reads an OP_QUERY message from a byte buffer
var flags: OpQueryFlagsThe flags for this message, see OpQueryFlags
var fullCollectionName: StringThe full collection name, including the database name and the collection name separated by a dot
var header: MongoMessageHeaderThe header for this message, see MongoMessageHeader
var numberToReturn: Int32The number of documents to return
var numberToSkip: Int32The number of documents to skip before returning results
var query: DocumentThe query document
func write(to out: inout ByteBuffer) Writes this message to a byte buffer