Sails.js/Waterline adapter for MongoDB.
Provides easy access to MongoDB from Sails.js & Waterline. This module is a Sails/Waterline adapter maintained by the core team. Its goal is to provide robust, easy-to-use access to MongoDB from Sails.js and Waterline.
As an adapter, this module implements a set of declarative interfaces, conventions, and best-practices for integrating with Mongo databases. Strict adherence to an adapter specification enables the (re)use of built-in generic test suites, standardized documentation, reasonable expectations around the API for your users, and overall, a more pleasant development experience for everyone.
To install this adapter, run:
$ npm install sails-mongo
Then connect the adapter to one or more of your app's datastores.
Visit Models & ORM in the docs for more information about using models, datastores, and adapters in your app/microservice.
This adapter implements the following methods:
|join||not supported||Modeled (DQL)|
Please observe the guidelines and conventions laid out in the Sails project contribution guide when opening issues or submitting pull requests.
This repository includes a Docker Compose file that helps setting up the environment needed to run the test.
npm run docker-test command runs the tests on a single run under the supported MongoDB version
(at this time, up to 3.4).
For more information, check MongoDB's Support Policy.
To run tests while developing, you can run
npm run docker. This command opens a docker instance and opens a shell.
From there you can run
npm test to run the tests as many times as you need.
To report a bug, click here.
This core adapter is available under the MIT license.