38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
# schema tells gqlgen when the GraphQL schema is located.
|
|
schema:
|
|
- ent.graphql
|
|
- exyu.graphql
|
|
|
|
# Where should the generated server code go?
|
|
exec:
|
|
layout: follow-schema
|
|
dir: graph/generated
|
|
package: generated
|
|
|
|
# resolver reports where the resolver implementations go.
|
|
resolver:
|
|
layout: follow-schema
|
|
dir: graph
|
|
package: graph
|
|
filename_template: "{name}.resolvers.go"
|
|
|
|
# gqlgen will search for any type names in the schema in these go packages
|
|
# if they match it will use them, otherwise it will generate them.
|
|
|
|
# autobind tells gqngen to search for any type names in the GraphQL schema in the
|
|
# provided package. If they match it will use them, otherwise it will generate new.
|
|
autobind:
|
|
- code.icod.de/dalu/ka/ent
|
|
- code.icod.de/dalu/ka/ent/post
|
|
- code.icod.de/dalu/ka/ent/category
|
|
- code.icod.de/dalu/ka/ent/profile
|
|
|
|
# This section declares type mapping between the GraphQL and Go type systems.
|
|
models:
|
|
# Defines the ID field as Go 'uuid'.
|
|
ID:
|
|
model:
|
|
- code.icod.de/dalu/ka/ent/schema/uuidgql.UUID
|
|
Node:
|
|
model:
|
|
- code.icod.de/dalu/ka/ent.Noder |