18 lines
348 B
TypeScript
18 lines
348 B
TypeScript
|
|
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
overwrite: true,
|
|
schema: "../graphql",
|
|
generates: {
|
|
"src/.generated/graphql.ts": {
|
|
plugins: ["typescript", "typescript-resolvers"]
|
|
},
|
|
"./graphql.schema.json": {
|
|
plugins: ["introspection"]
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|