Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.07 KB

README.md

File metadata and controls

31 lines (25 loc) · 1.07 KB

Yoga Graphql Server

Replication

Issue 0 - Unable to create type safe GraphQL Context

  1. checkout branch main
  2. inspect src/server.ts
  3. see typescript error in createYoga call.

Issue 1 - Unable to pass yoga to Express Router

  1. checkout branch issue1
  2. inspect src/server.ts
  3. see typescript error when trying to pass yoga to express router
  4. see error on schema argument for createYoga (from above)

Issue 2 - Mapper name mismatch not generating matches

This is more of a documentation issue:

  1. Switch to branch issue2
  2. Generate code
$ npm run prisma:generate
$ npm run codegen:generate
  1. notice PostMapper is not imported into types.generated.ts (because of the mapper.ts/schema.graphql naming mismatch)

Resources: