Skip to content

Commit 10e81cf

Browse files
authored
Merge pull request #188 from lcdr/graphql-infra
Add GraphQL infrastructure
2 parents 1be6d71 + 93ea62a commit 10e81cf

File tree

7 files changed

+15776
-7357
lines changed

7 files changed

+15776
-7357
lines changed

codegen.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { CodegenConfig } from "@graphql-codegen/cli";
2+
3+
const config: CodegenConfig = {
4+
overwrite: true,
5+
schema: "schema.graphql",
6+
documents: "src/**/*.graphql",
7+
generates: {
8+
"src/generated/graphql.ts": {
9+
plugins: ["typescript", "typescript-operations", "typescript-apollo-angular"],
10+
config: {
11+
gqlImport: "app/util/services/graphql#gql",
12+
apolloAngularPackage: "app/util/services/graphql"
13+
}
14+
}
15+
}
16+
};
17+
18+
export default config;

0 commit comments

Comments
 (0)