Interface IMongoDBObserveBuilder<TDocument>

Namespace
Cratis.Arc.MongoDB
Assembly
Cratis.Arc.MongoDB.dll

Defines the builder for observing a single collection, enabling joins with other collections.

public interface IMongoDBObserveBuilder<TDocument>

Type Parameters

TDocument

Type of the primary document.

Extension Methods

Methods

Join<TJoined>(Expression<Func<TJoined, bool>>?)

Joins with another collection in the observation.

IMongoDBJoinedObserveBuilder<TDocument, TJoined> Join<TJoined>(Expression<Func<TJoined, bool>>? filter = null)

Parameters

filter Expression<Func<TJoined, bool>>

Optional filter expression for the joined documents.

Returns

IMongoDBJoinedObserveBuilder<TDocument, TJoined>

A IMongoDBJoinedObserveBuilder<T1, T2> for further chaining or finalizing.

Type Parameters

TJoined

Type of the joined document.