Queries the data store by filter expression and returns the first result.

public abstract Task<T> FindOneAsync(Expression<Func<T, bool>> filter, CancellationToken cancellationToken)
Returns:
Task<T>

Parameters

filter Expression<Func<T, bool>>

The filter expression used to query the data store.

cancellationToken CancellationToken
In this article