sails-mongo
compatability issue
#106
MaheshkumarSundaram
started this conversation in
General
Replies: 1 comment 4 replies
-
Have you tried this yet? Looks promising… balderdashy/sails#7117 (comment) At the very end of that thread, he made a repo for it as well. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @neonexus
I have a Mongo Server whose version is
6.0.5
. Butsails-mongo
is not compatible any more as it's been outdated for a while.In this case, I am planning to use
MongoClient
from the Node.js MongoDB Driver API directly in the code. I know this means, I have to construct all the queries by myself which is an overhead but to use all the latest features, I believe it would be better.If I use this library to connect with Mongo instead of a Sails Model, would it have any negative effect on the Sails application as a whole deviating from ORM? I suppose, it shouldn't. Do you have any suggestions or opinions towards this approach?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions