-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphqlgen.yml
23 lines (18 loc) · 726 Bytes
/
graphqlgen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# The target programming language for the generated code.
language: typescript
# The file path pointing to your GraphQL schema.
schema: ./src/schema.graphql
# Type definition for the resolver context object.
context: ./src/types.ts:Context
# Map SDL types from the GraphQL schema to TS models.
models:
files:
- ./src/generated/prisma-client
- ./src/types.ts
# Generated typings for resolvers and default resolver implementations
# DO NOT EDIT THIS FILE but just _import_ from it into your own source files.
output: ./src/generated/graphqlgen.ts
# Temporary scaffolded resolvers to copy and paste into your own source files.
resolver-scaffolding:
output: ./src/generated/tmp-resolvers/
layout: file-per-type