Table of Contents

Method Find

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Find(IMongoQuery)

Returns a cursor that can be used to find all documents in this collection that match the query as TDefaultDocuments.

public virtual MongoCursor<TDefaultDocument> Find(IMongoQuery query)

Parameters

query IMongoQuery

The query (usually a QueryDocument or constructed using the Query builder).

Returns

MongoCursor<TDefaultDocument>

A MongoCursor<TDocument>.