aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/graphql/resolver/resolver.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/graphql/resolver/resolver.go')
-rw-r--r--backend/graphql/resolver/resolver.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/backend/graphql/resolver/resolver.go b/backend/graphql/resolver/resolver.go
new file mode 100644
index 0000000..7a9c389
--- /dev/null
+++ b/backend/graphql/resolver/resolver.go
@@ -0,0 +1,15 @@
+package resolver
+
+import (
+ "database/sql"
+ "undef.ninja/x/feedaka/db"
+)
+
+// This file will not be regenerated automatically.
+//
+// It serves as dependency injection for your app, add any dependencies you require here.
+
+type Resolver struct {
+ DB *sql.DB
+ Queries *db.Queries
+}