ka/gqlgen.yml

39 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2024-10-04 19:32:59 +02:00
# schema tells gqlgen when the GraphQL schema is located.
schema:
2024-10-05 23:02:23 +02:00
- graph/ent.graphql
- graph/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
2024-10-04 20:24:36 +02:00
filename_template: "{name}.resolvers.go"
2024-10-04 19:32:59 +02:00
# 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:
2024-10-05 23:02:23 +02:00
- code.icod.de/dalu/ka/ent.Noder