beerpong-elo/web/codegen.ts
2025-01-09 15:51:37 +01:00

20 lines
357 B
TypeScript

import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
overwrite: true,
schema: "http://localhost:8080/graphql",
documents: "./src/**/*.graphql",
generates: {
"src/gql/": {
preset: "client",
plugins: [],
config:{
useTypeImports: true,
},
}
}
};
export default config;