We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bbd4ff commit 11b661bCopy full SHA for 11b661b
website/src/pages/docs/config-reference/schema-field.mdx
@@ -141,6 +141,23 @@ const config: CodegenConfig = {
141
export default config;
142
```
143
144
+Alternatively, you can specify a custom fetch function directly:
145
+
146
+```ts {7}
147
+import { CodegenConfig } from '@graphql-codegen/cli';
148
+import { myCustomFetch } from './my-custom-fetch.ts'
149
150
+const config: CodegenConfig = {
151
+ schema: [
152
+ {
153
+ 'http://localhost:3000/graphql': {
154
+ customFetch: myCustomFetch,
155
+ }
156
157
+ ]
158
+};
159
+export default config;
160
+```
161
162
##### `method`
163
0 commit comments