20 lines
357 B
TypeScript
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;
|