Closed kane-mason closed 2 years ago
im busy working in this area so can update it, but just wondering if i am missing something?
Good catch! Looks like fields
was an old parameter (that probably still works), but please update it to projection when you can. http://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#find
Also, make sure to run npm run testdbs
when doing these kinds of changes (that command needs local docker to be setup)
Fixed here https://github.com/thomas4019/expressa/pull/172
I struggled with docker
and npm run testdbs
. However i did manage to run both mongo
and postgres
tests separately and all passed
I noticed in
db/mongo.js
thatfields
gets passed to thefind
andget
mongo db commands, however according to mongo docs it expectsprojections
property to limit fields?