Table of Contents

Enum QueryFlags

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

Flags used with queries (see the SetQueryFlags method of MongoCursor).

[Flags]
public enum QueryFlags
Extension Methods

Fields

None = 0

No flags.

TailableCursor = 2

This cursor should be tailable.

SecondaryOk = 4

It's OK for the query to be handled by a secondary server.

NoCursorTimeout = 16

Tell the server not to let the cursor timeout.

AwaitData = 32

Tell the server to wait for data to become available before returning (only used with TailableCursor).

Exhaust = 64

Tell the server to send all the data at once (in multiple messages if necessary) without waiting for GetMore messages.

Partial = 128

Allow partial results in a sharded system if some of the shards are down.