Skip to content

Commit

Permalink
Adding the where directliy to category find many
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcostadev committed Nov 20, 2021
1 parent 07c7b0a commit af9545c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/types/Category/queries/findMany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const CategoryFindManyQuery = queryField('findManyCategory', {
const data = await ctx.prisma.category.findMany({
...args,
where: {
...args.where,
...where,
userId,
},
Expand Down

0 comments on commit af9545c

Please sign in to comment.