2024-11-01 17:49:56 +00:00
|
|
|
import { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
|
|
|
|
const config: CodegenConfig = {
|
2024-11-04 06:05:43 +00:00
|
|
|
schema: `${process.env.GRAPH_URL}/query`,
|
|
|
|
documents: ['./web/lib/gql/*.ts'],
|
2024-11-01 17:49:56 +00:00
|
|
|
generates: {
|
2024-11-04 06:05:43 +00:00
|
|
|
'./web/lib/gql/graph.d.ts': {
|
2024-11-01 17:49:56 +00:00
|
|
|
plugins: ['typescript', 'typescript-operations']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|