From 4d99c727a77a98745efd29d0291dced8a1f8420e Mon Sep 17 00:00:00 2001 From: POPPIN-FUMI Date: Tue, 12 Sep 2023 09:40:52 +0200 Subject: [PATCH] fix scaffold mutation --- src/templates/graphql/graphqlMutation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/graphql/graphqlMutation.ts b/src/templates/graphql/graphqlMutation.ts index 489cb44a..293362b8 100644 --- a/src/templates/graphql/graphqlMutation.ts +++ b/src/templates/graphql/graphqlMutation.ts @@ -22,7 +22,7 @@ export const createModelCodes = async (modelName: string) => { const modelNameUpper = await toUpperCase(modelName) const modelNameLower = await toLowerCase(modelName) let codeArray = [ - `import { extendType, stringArg, intArg, floatArg, BooleanArg } from 'nexus'`, + `import { extendType, stringArg, intArg, floatArg, booleanArg } from 'nexus'`, `import { toPrismaId } from '@/lib/toPrismaId'`, `import { ${modelNameUpper} } from 'nexus-prisma'`, `import { GraphQLError } from 'graphql'\n`,