We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baed9a2 commit 505df9fCopy full SHA for 505df9f
src/components/user/dto/list-users.dto.ts
@@ -1,6 +1,7 @@
1
import { InputType, ObjectType } from '@nestjs/graphql';
2
import {
3
FilterField,
4
+ type ID,
5
ListField,
6
OptionalField,
7
PaginatedList,
@@ -11,6 +12,8 @@ import { User } from './user.dto';
11
12
13
@InputType()
14
export abstract class UserFilters {
15
+ readonly id?: ID<'User'>;
16
+
17
@OptionalField()
18
readonly name?: string;
19
src/components/user/user.repository.ts
@@ -389,6 +389,7 @@ export class UserRepository extends DtoRepository(User) {
389
}
390
391
export const userFilters = filter.define(() => UserFilters, {
392
+ id: filter.baseNodeProp(),
393
pinned: filter.isPinned,
394
name: filter.fullText({
395
index: () => NameIndex,
0 commit comments