tstor/server/.gqlgen.yml
2025-03-23 04:11:31 +04:00

44 lines
991 B
YAML

schema:
- ../graphql/*.graphql
- ../graphql/**/*.graphql
exec:
filename: src/delivery/graphql/generated.go
package: graph
model:
filename: src/delivery/graphql/model/models_gen.go
package: model
resolver:
layout: follow-schema
dir: src/delivery/graphql/resolver
package: resolver
filename_template: "{name}.resolvers.go"
models:
DateTime:
model: github.com/99designs/gqlgen/graphql.Time
Int:
model: github.com/99designs/gqlgen/graphql.Int64
UInt:
model:
- github.com/99designs/gqlgen/graphql.Uint
SimpleDir:
extraFields:
Path:
type: string
FS:
type: "git.kmsign.ru/royalcat/tstor/server/src/vfs.Filesystem"
ResolverFS:
extraFields:
FS:
type: "*git.kmsign.ru/royalcat/tstor/server/src/vfs.ResolverFS"
# ArchiveFS:
# extraFields:
# FS:
# type: "*git.kmsign.ru/royalcat/tstor/server/src/vfs.ArchiveFS"
TorrentOps:
extraFields:
InfoHash:
type: "string"