This is a ODM wrapper for nedb.
The goal of this open source project is to create a nedb wrapper like mongoose.
Run npm install nengoose
into your project
First, we need to define a connection. If your app uses only one database, you should import the package. If you need to create additional connections, just create a new variable to contain the connection.
const database = require('nengoose');
const User = new database("path/to/db");
To create a database schema we will have to
const User = new database("path/to/db");
const user = User.Schema({
user: {
type: String
},
password: {
type: String
},
address: {
type: Array
}
});