Skip to content

Commit

Permalink
add updates for final branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Liz Hennessy authored and Liz Hennessy committed Feb 6, 2024
1 parent 6c377d4 commit 23a800e
Show file tree
Hide file tree
Showing 10 changed files with 4,554 additions and 255 deletions.
20 changes: 20 additions & 0 deletions codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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",
mappers: {
Playlist: "./models#PlaylistModel",
Track: "./models#TrackModel",
AddItemsToPlaylistPayload: "./models#AddItemsToPlaylistPayloadModel",
}
}
},
},
};

export default config;
Loading

0 comments on commit 23a800e

Please sign in to comment.