Skip to content

Commit

Permalink
Add prisma input types
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Mar 17, 2023
1 parent f799c55 commit 27da5c2
Show file tree
Hide file tree
Showing 7 changed files with 2,225 additions and 618 deletions.
5 changes: 4 additions & 1 deletion packages/plugin-prisma-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
}
},
"scripts": {
"generate": "prisma migrate reset -f",
"generate": "prisma migrate reset -f && ts-node tests/examples/codegen/generator.ts && pnpm schema",
"schema": "ts-node tests/examples/codegen/schema/index.ts && ts-node tests/examples/crud/schema/index.ts",
"type": "tsc --project tsconfig.type.json",
"build": "pnpm build:clean && pnpm build:cjs && pnpm build:dts && pnpm build:esm",
"build:clean": "git clean -dfX esm lib",
Expand Down Expand Up @@ -59,7 +60,9 @@
"@pothos/test-utils": "workspace:*",
"@prisma/client": "^4.11.0",
"graphql": "16.6.0",
"graphql-scalars": "^1.20.4",
"graphql-tag": "^2.12.6",
"prettier": "^2.8.4",
"prisma": "^4.11.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const prisma = new PrismaClient({
],
});

export default new SchemaBuilder<{
export const builder = new SchemaBuilder<{
Context: {
user: { id: number };
};
Expand Down
Loading

0 comments on commit 27da5c2

Please sign in to comment.