Files
neuf-www/web/codegen.ts

15 lines
348 B
TypeScript

import { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
schema: "http://127.0.0.1:8000/api/graphql/",
documents: ["src/**/*.tsx", "src/**/*.ts"],
ignoreNoDocuments: true, // for better experience with the watcher
generates: {
"./src/gql/": {
preset: "client",
},
},
};
export default config;