565a2fafac
Improve the Next.js with TypeScript + GraphQL example: - [x] use GraphQL Code Generator instead of `graphql-let`: more widespread tool and smaller bundle size (types only generation vs code generation) - [x] use GraphQL Yoga instead of Apollo Server Micro: for lighter bundle size as [stated here](https://github.com/vercel/next.js/pull/36155) - [x] introduces GraphQL Code Generator on the API side for Resolvers typing Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
14 lines
309 B
YAML
14 lines
309 B
YAML
schema:
|
|
- 'lib/schema.ts':
|
|
noRequire: true
|
|
documents: ./lib/documents/*.graphql
|
|
generates:
|
|
./lib/graphql-operations.ts:
|
|
plugins:
|
|
- typescript
|
|
- typescript-operations
|
|
- typed-document-node
|
|
./lib/resolvers-types.ts:
|
|
plugins:
|
|
- typescript
|
|
- typescript-resolvers
|