ka/gqlgen.yml

37 lines
1.0 KiB
YAML
Raw Normal View History

2024-10-04 19:32:59 +02:00
# schema tells gqlgen when the GraphQL schema is located.
schema:
- ent.graphql
2024-10-04 20:22:25 +02:00
- ka.graphql
2024-10-04 19:32:59 +02:00
# 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
# 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/category
2024-10-04 20:22:25 +02:00
- code.icod.de/dalu/ka/ent/post
2024-10-04 19:32:59 +02:00
- 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