18 lines
354 B
TypeScript
18 lines
354 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;
|