❔ [MongoDB][C# driver] Where the fuck is FindOne ?
I'm looking at doing the equivalent of what C# generally does with
the close operator I found to
the close operator I found to
.First() / .FirstOrDefault()the close operator I found to
Where is Findthe close operator I found to
FirstOrDefault(predicate) are tiherFindOneOr|Delete|Reaplcewhich seems fucking dumbFind( + limit:1)which returnIEnumerable<T>and not
which seems fucking dumbTFindOne()was mentionned in older documentation but cannot find in current version
FindOne(predicate) returning either
or throw => equivalent ofTFirst(predicate)
or default(T) => equivalent ofTFirstOrDefault(predicate)- I'd be ok with
Result<T>if I have to check success + direct T