Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
1import type { CodegenConfig } from "@graphql-codegen/cli";
2import { LENS_ENDPOINT } from "@hey/data/lens-endpoints";
3
4const config: CodegenConfig = {
5 config: {
6 inlineFragmentTypes: "combine",
7 noGraphQLTag: true
8 },
9 documents: "./documents/**/*.graphql",
10 generates: {
11 "generated.ts": {
12 config: {
13 addDocBlocks: false,
14 disableDescriptions: true,
15 useTypeImports: true,
16 withMutationFn: false,
17 withMutationOptionsType: false,
18 withResultType: false
19 },
20 plugins: [
21 "typescript",
22 "typescript-operations",
23 "typescript-react-apollo"
24 ]
25 },
26 "possible-types.ts": {
27 plugins: ["fragment-matcher"]
28 }
29 },
30 hooks: { afterAllFileWrite: ["biome format --write ."] },
31 overwrite: true,
32 schema: LENS_ENDPOINT.Mainnet
33};
34
35export default config;