chore: Setup objectionjs as ORM

This commit is contained in:
Faruk AYDIN
2021-10-05 18:39:28 +02:00
committed by Ali BARIN
parent 908f156a45
commit f032dea77e
5 changed files with 111 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
"start": "node dist/index.js",
"test": "echo \"Error: run tests from root\" && exit 1",
"db:create": "ts-node ./bin/database/create.ts",
"db:migration:create": "knex migrate:make",
"db:drop": "ts-node ./bin/database/drop.ts"
},
"dependencies": {
@@ -17,7 +18,9 @@
"express": "~4.16.1",
"express-graphql": "^0.12.0",
"http-errors": "~1.6.3",
"knex": "^0.95.11",
"morgan": "^1.10.0",
"objection": "^2.2.17",
"pg": "^8.7.1",
"winston": "^3.3.3"
},