@copilotkit/runtime-client-gql
Version:
<div align="center"> <a href="https://copilotkit.ai" target="_blank"> <img src="https://github.com/copilotkit/copilotkit/raw/main/assets/banner.png" alt="CopilotKit Logo"> </a>
23 lines (19 loc) • 505 B
text/typescript
import type { CodegenConfig } from "@graphql-codegen/cli";
import path from "node:path";
const schema = path.resolve(__dirname, "../runtime/__snapshots__/schema/schema.graphql");
const config: CodegenConfig = {
schema,
documents: ["src/graphql/definitions/**/*.{ts,tsx}"],
generates: {
"./src/graphql/@generated/": {
preset: "client",
config: {
useTypeImports: true,
withHooks: false,
},
plugins: [],
},
},
hooks: {},
};
export default config;