forked from Honeypot-Finance/honeypot_frontend_v2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalgebra_codegen.ts
31 lines (29 loc) · 969 Bytes
/
algebra_codegen.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import type { CodegenConfig } from "@graphql-codegen/cli";
import { QueryClient } from "@tanstack/react-query";
const config: CodegenConfig = {
overwrite: true,
schema: [
"https://api.goldsky.com/api/public/project_cm78242tjtmme01uvcbkaay27/subgraphs/hpot-algebra-core/2.1.9/gn",
"https://api.studio.thegraph.com/query/50593/goerli-blocks/version/latest",
"https://api.goldsky.com/api/public/project_cm78242tjtmme01uvcbkaay27/subgraphs/hpot-algebra-farming/2.0.0/gn",
],
documents: "lib/algebra/graphql/queries/!(*.d).{ts,tsx}",
generates: {
"lib/algebra/graphql/generated/graphql.tsx": {
plugins: [
"typescript",
"typescript-operations",
"typescript-react-apollo",
],
config: {
withHooks: true,
withResultType: true,
addQuery: true,
addInfiniteQuery: true,
addPagination: true,
addInlineFragment: true,
},
},
},
};
export default config;