2025-01-09 15:51:37 +01:00
|
|
|
|
|
|
|
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
|
|
|
|
const config: CodegenConfig = {
|
|
|
|
overwrite: true,
|
|
|
|
schema: "http://localhost:8080/graphql",
|
2025-01-09 16:01:41 +01:00
|
|
|
documents: "./src/**/*.svelte",
|
2025-01-09 15:51:37 +01:00
|
|
|
generates: {
|
|
|
|
"src/gql/": {
|
|
|
|
preset: "client",
|
|
|
|
plugins: [],
|
|
|
|
config:{
|
|
|
|
useTypeImports: true,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|