-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
21 lines (21 loc) · 737 Bytes
/
codegen.yml
File metadata and controls
21 lines (21 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
overwrite: true
schema:
- "./graphql/schema.graphql"
- "./appsync.graphql"
generates:
./packages/functions/graphql/types/resolvers-types.ts:
plugins:
- add:
content: "/* eslint-disable */\n\nimport { AppSyncResolverEvent } from 'aws-lambda';"
- typescript
- typescript-resolvers
config:
contextType: ../lambda#Context
customResolverFn: "(event: AppSyncResolverEvent<TArgs, TParent>, context: TContext ) => Promise<TResult> | TResult"
avoidOptionals:
- defaultValue: true
enumsAsTypes: true
maybeValue: "T extends PromiseLike<infer U> ? Promise<U | null | undefined> : T | null | undefined"
mappers:
Me: Partial<{T}>
User: Partial<{T}>