Refactor database setup and add user context to GQL requests (#17)

* Add context to each request

* Implement get user db query

* Move constants to a separate file

* Refactor database init method
This commit is contained in:
neerajvijay1997
2024-02-01 11:37:57 +05:30
committed by Ashwin Phatak
parent 4d00cfb8f0
commit e4c099f8c3
7 changed files with 63 additions and 28 deletions
+3
View File
@@ -2,3 +2,6 @@
host = "127.0.0.1"
port = 8000
gqlPath = "/graphql"
[database]
dbPath = "db/snowball"