Table of Contents

Method BuildMongoQuery

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

BuildMongoQuery<T>(MongoQueryable<T>)

Builds the MongoDB query that will be sent to the server when the LINQ query is executed.

public IMongoQuery BuildMongoQuery<T>(MongoQueryable<T> query)

Parameters

query MongoQueryable<T>

The LINQ query.

Returns

IMongoQuery

The MongoDB query.

Type Parameters

T

The type of the documents being queried.