-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Liz Hennessy
authored and
Liz Hennessy
committed
Feb 6, 2024
1 parent
6c377d4
commit 23a800e
Showing
10 changed files
with
4,554 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.