* Specify that the query should return distinct rows. * Deduplicates rows based on the selected columns. * @returns A QueryBuilder with distinct enabled * * @example * ```ts * // Get countries our users are from * query * .from({ users: usersCollection }) * .select(({u
()
| 781 | * ``` |
| 782 | */ |
| 783 | distinct(): QueryBuilder<TContext> { |
| 784 | return new BaseQueryBuilder({ |
| 785 | ...this.query, |
| 786 | distinct: true, |
| 787 | }) as any |
| 788 | } |
| 789 | |
| 790 | /** |
| 791 | * Specify that the query should return a single result |
no outgoing calls