ngnx-data-proxy-mongodb

1.0.10 • Public • Published

NGNX.DATA.MongoDBProxy

npm i ngnx-data-proxy-mongodb

require('ngnx-data-proxy-mongodb')
 
const Person = new NGN.DATA.Model({
  fields: {
    firstname: null,
    lastname: null
  },
 
  proxy: new NGNX.DATA.MongoDBProxy({
    host: 'host.com:12345',
    database: 'people_db',
    username: 'user',
    password: 'password'
  })
})

The MongoDB proxy is used to perform CRUD operations from an NGN.DATA.Store and/or NGN.DATA.Model.

Package Sidebar

Install

npm i ngnx-data-proxy-mongodb

Weekly Downloads

0

Version

1.0.10

License

BSD-3-Clause

Last publish

Collaborators

  • cbutler