Skip to content

Commit

Permalink
Added gqlPath to FindAndCount in resolver template of nest-server-module
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihaase committed Feb 25, 2023
1 parent f23260a commit 749c891
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lenne.tech/cli",
"version": "0.0.87",
"version": "0.0.88",
"description": "lenne.Tech CLI: lt",
"keywords": [
"lenne.Tech",
Expand Down
2 changes: 1 addition & 1 deletion src/templates/nest-server-module/template.resolver.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class <%= props.namePascal %>Resolver {
@Roles(RoleEnum.S_USER)
@Query(() => FindAndCount<%= props.namePascal %>sResult, { description: 'Find <%= props.namePascal %>s (via filter)' })
async findAndCount<%= props.namePascal %>s(
@GraphQLServiceOptions() serviceOptions: ServiceOptions,
@GraphQLServiceOptions({ gqlPath: 'findAndCount<%= props.namePascal %>s.items' }) serviceOptions: ServiceOptions,
@Args() args?: FilterArgs
) {
return await this.<%= props.nameCamel %>Service.findAndCount(args, {
Expand Down

0 comments on commit 749c891

Please sign in to comment.