rano/codegen.ts

14 lines
298 B
TypeScript
Raw Normal View History

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