Initial commit
This commit is contained in:
commit
864f37a652
48 changed files with 45596 additions and 0 deletions
19
codegen.ts
Normal file
19
codegen.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import type { CodegenConfig } from "@graphql-codegen/cli";
|
||||
|
||||
const config: CodegenConfig = {
|
||||
overwrite: true,
|
||||
schema: "./app/server/graphql/schema.graphql",
|
||||
documents: "./app/client/fragments.ts",
|
||||
generates: {
|
||||
"./__generated__/": {
|
||||
preset: "client",
|
||||
plugins: ["typescript", "typescript-resolvers"],
|
||||
},
|
||||
"./graphql.schema.json": {
|
||||
plugins: ["introspection"],
|
||||
},
|
||||
},
|
||||
ignoreNoDocuments: true,
|
||||
};
|
||||
|
||||
export default config;
|
||||
Loading…
Add table
Add a link
Reference in a new issue