Skip to content

Commit

Permalink
update final branch through connecting server pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
Liz Hennessy authored and Liz Hennessy committed Jan 31, 2024
1 parent 441d4e2 commit f3e7e5a
Show file tree
Hide file tree
Showing 9 changed files with 3,688 additions and 115 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ node_modules/
# Intellij Configuration Files
.idea/

generated-schema.graphql
# Always regenerate new types before running project
src/types.ts
15 changes: 15 additions & 0 deletions codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
schema: "./src/schema.ts",
generates: {
"./src/types.ts": {
plugins: ["typescript", "typescript-resolvers"],
config: {
contextType: "./context#DataSourceContext",
},
},
},
};

export default config;
Loading

0 comments on commit f3e7e5a

Please sign in to comment.