Skip to content

Commit

Permalink
v1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryant Brock committed Apr 15, 2023
1 parent 0bbea90 commit 5abbee8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion bin/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,13 @@ const generateCustomHook = (modelName, action, isMutation) => {
const displayAction = startCase(action);
const hookName = `use${displayAction}${isMany ? `${modelName}s` : modelName}`;
const argsType = `Prisma.${modelName}${
isCount || isAggregate || isGroupBy ? "" : displayAction
isCount
? "Count"
: isAggregate
? "Aggregate"
: isGroupBy
? "GroupBy"
: displayAction
}Args`;

if (isMutation) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prisma-hooks",
"version": "1.1.6",
"version": "1.1.7",
"type": "module",
"description": "100% type-safe, generated react-query hooks for quering any model in your prisma-managed database.",
"main": "index.js",
Expand Down

0 comments on commit 5abbee8

Please sign in to comment.