- checkout branch
main
- inspect
src/server.ts
- see typescript error in
createYoga
call.
- checkout branch
issue1
- inspect
src/server.ts
- see typescript error when trying to pass
yoga
to express router - see error on
schema
argument forcreateYoga
(from above)
This is more of a documentation issue:
- Switch to branch
issue2
- Generate code
$ npm run prisma:generate
$ npm run codegen:generate
- notice
PostMapper
is not imported into types.generated.ts (because of the mapper.ts/schema.graphql naming mismatch)
- https://blog.logrocket.com/how-to-set-up-node-typescript-express/
- https://the-guild.dev/blog/graphql-code-generator-and-prisma
- https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-express
- https://the-guild.dev/graphql/codegen/docs/guides/graphql-server-apollo-yoga-with-server-preset