@lenne.tech/nest-server 9.0.2 → 9.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "9.0.2",
3
+ "version": "9.0.3",
4
4
  "description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
5
5
  "keywords": [
6
6
  "node",
@@ -2,7 +2,7 @@ import { Field, ObjectType } from '@nestjs/graphql';
2
2
  import { User } from '../user.model';
3
3
 
4
4
  @ObjectType({ description: 'Result of find and count' })
5
- export class FindAndCountUserResult {
5
+ export class FindAndCountUsersResult {
6
6
  @Field(() => [User], { description: 'Found users' })
7
7
  items: User[];
8
8
 
@@ -8,7 +8,7 @@ import { Roles } from '../../../core/common/decorators/roles.decorator';
8
8
  import { RoleEnum } from '../../../core/common/enums/role.enum';
9
9
  import { UserCreateInput } from './inputs/user-create.input';
10
10
  import { UserInput } from './inputs/user.input';
11
- import { FindAndCountUserResult } from './outputs/find-and-count-user-result.output';
11
+ import { FindAndCountUsersResult } from './outputs/find-and-count-users-result.output';
12
12
  import { User } from './user.model';
13
13
  import { UserService } from './user.service';
14
14
 
@@ -43,7 +43,7 @@ export class UserResolver {
43
43
  * Get users and total count (via filter)
44
44
  */
45
45
  @Roles(RoleEnum.ADMIN)
46
- @Query(() => FindAndCountUserResult, { description: 'Find users (via filter)' })
46
+ @Query(() => FindAndCountUsersResult, { description: 'Find users (via filter)' })
47
47
  async findAndCountUsers(@Info() info: GraphQLResolveInfo, @Args() args?: FilterArgs) {
48
48
  return await this.userService.findAndCount(args, {
49
49
  fieldSelection: { info, select: 'findAndCountUsers' },
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-and-count-user-result.output.js","sourceRoot":"","sources":["../../../../../src/server/modules/user/outputs/find-and-count-user-result.output.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,8CAAqC;AAGrC,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;CAMlC,CAAA;AAJC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,iBAAI,CAAC,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;;qDACtC;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,WAAW,EAAE,mEAAmE,EAAE,CAAC;;0DACzE;AALR,sBAAsB;IADlC,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;GAC3C,sBAAsB,CAMlC;AANY,wDAAsB"}