@@ -508,6 +508,33 @@ public interface IMongoCollection<TDocument>
508
508
/// </returns>
509
509
IAsyncCursor < TField > Distinct < TField > ( IClientSessionHandle session , FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
510
510
511
+ /// <summary>
512
+ /// Gets the distinct values for a specified array field.
513
+ /// </summary>
514
+ /// <typeparam name="TField">The type of the field.</typeparam>
515
+ /// <typeparam name="TItem">The type of the result.</typeparam>
516
+ /// <param name="field">The field.</param>
517
+ /// <param name="filter">The filter.</param>
518
+ /// <param name="options">The options.</param>
519
+ /// <param name="cancellationToken">The cancellation token.</param>
520
+ /// <returns>A cursor.</returns>
521
+ IAsyncCursor < TItem > Distinct < TField , TItem > ( FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
522
+ where TField : IEnumerable < TItem > ;
523
+
524
+ /// <summary>
525
+ /// Gets the distinct values for a specified array field.
526
+ /// </summary>
527
+ /// <typeparam name="TField">The type of the field.</typeparam>
528
+ /// <typeparam name="TItem">The type of the result.</typeparam>
529
+ /// <param name="session">The session.</param>
530
+ /// <param name="field">The field.</param>
531
+ /// <param name="filter">The filter.</param>
532
+ /// <param name="options">The options.</param>
533
+ /// <param name="cancellationToken">The cancellation token.</param>
534
+ /// <returns>A cursor.</returns>
535
+ IAsyncCursor < TItem > Distinct < TField , TItem > ( IClientSessionHandle session , FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
536
+ where TField : IEnumerable < TItem > ;
537
+
511
538
/// <summary>
512
539
/// Gets the distinct values for a specified field.
513
540
/// </summary>
@@ -533,6 +560,33 @@ public interface IMongoCollection<TDocument>
533
560
/// </returns>
534
561
Task < IAsyncCursor < TField > > DistinctAsync < TField > ( IClientSessionHandle session , FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
535
562
563
+ /// <summary>
564
+ /// Gets the distinct values for a specified array field.
565
+ /// </summary>
566
+ /// <typeparam name="TField">The type of the field.</typeparam>
567
+ /// <typeparam name="TItem">The type of the result.</typeparam>
568
+ /// <param name="field">The field.</param>
569
+ /// <param name="filter">The filter.</param>
570
+ /// <param name="options">The options.</param>
571
+ /// <param name="cancellationToken">The cancellation token.</param>
572
+ /// <returns>A cursor.</returns>
573
+ Task < IAsyncCursor < TItem > > DistinctAsync < TField , TItem > ( FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
574
+ where TField : IEnumerable < TItem > ;
575
+
576
+ /// <summary>
577
+ /// Gets the distinct values for a specified array field.
578
+ /// </summary>
579
+ /// <typeparam name="TField">The type of the field.</typeparam>
580
+ /// <typeparam name="TItem">The type of the result.</typeparam>
581
+ /// <param name="session">The session.</param>
582
+ /// <param name="field">The field.</param>
583
+ /// <param name="filter">The filter.</param>
584
+ /// <param name="options">The options.</param>
585
+ /// <param name="cancellationToken">The cancellation token.</param>
586
+ /// <returns>A cursor.</returns>
587
+ Task < IAsyncCursor < TItem > > DistinctAsync < TField , TItem > ( IClientSessionHandle session , FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
588
+ where TField : IEnumerable < TItem > ;
589
+
536
590
/// <summary>
537
591
/// Returns an estimate of the number of documents in the collection.
538
592
/// </summary>
0 commit comments