Click or drag to resize
IFindFluentExtensions.FirstOrDefault<TDocument, TProjection> Method
Get the first result or null.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntax
public static TProjection FirstOrDefault<TDocument, TProjection>(
	this IFindFluent<TDocument, TProjection> find,
	CancellationToken cancellationToken = null
)

Parameters

find
Type: MongoDB.Driver.IFindFluent<TDocument, TProjection>
The fluent find.
cancellationToken (Optional)
Type: Extension Methods (C# Programming Guide).
See Also

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant