Begun writing custom abstraction layers for mongo, removing mongoose.

This commit is contained in:
Daniel Ledda
2020-06-25 20:57:58 +02:00
parent c13ac5f12b
commit 11bf3821a9
8 changed files with 644 additions and 223 deletions

View File

@@ -4,4 +4,6 @@ corresponding methods.
- Decide on whether to always use the namespace to call methods and pass an id, with the returned objects "Player",
"DbUser", etc. all being immutable object copies with limited attributes and no methods, or actually create extra
classes that have methods that can be called (right now thinking the first idea is better).
-> This way will be completely decoupled from Mongoose and MongoDB and will have full control.
-> This way will be completely decoupled from Mongoose and MongoDB and will have full control.
- Fix the stats logic so that the stats model does most of it