aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/gqlgen.yml
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-11 00:12:49 +0900
committernsfisis <nsfisis@gmail.com>2025-07-11 00:12:49 +0900
commit5fd105fd8ff480afaaf9c8ccd45eb26b61018550 (patch)
treefa6d278e5eb8a3a33f9a50088a18aa7ee8dde6d6 /backend/gqlgen.yml
parentce42724c7b055f8f4d1080410e1cf358cbe99189 (diff)
downloadfeedaka-5fd105fd8ff480afaaf9c8ccd45eb26b61018550.tar.gz
feedaka-5fd105fd8ff480afaaf9c8ccd45eb26b61018550.tar.zst
feedaka-5fd105fd8ff480afaaf9c8ccd45eb26b61018550.zip
feat(backend): add GraphQL boilerplate code
Diffstat (limited to 'backend/gqlgen.yml')
-rw-r--r--backend/gqlgen.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/backend/gqlgen.yml b/backend/gqlgen.yml
new file mode 100644
index 0000000..98f7b80
--- /dev/null
+++ b/backend/gqlgen.yml
@@ -0,0 +1,31 @@
+schema:
+ - ../common/graphql/schema.graphql
+
+exec:
+ package: graphql
+ layout: single-file
+ filename: graphql/generated.go
+
+model:
+ package: model
+ filename: graphql/model/generated.go
+
+resolver:
+ package: graphql
+ layout: single-file
+ filename: graphql/resolvers.go
+
+models:
+ ID:
+ model:
+ - github.com/99designs/gqlgen/graphql.ID
+ - github.com/99designs/gqlgen/graphql.Int
+ - github.com/99designs/gqlgen/graphql.Int64
+ - github.com/99designs/gqlgen/graphql.Int32
+ Int:
+ model:
+ - github.com/99designs/gqlgen/graphql.Int32
+ Int64:
+ model:
+ - github.com/99designs/gqlgen/graphql.Int
+ - github.com/99designs/gqlgen/graphql.Int64