@palmabit/lambda-mongo-crud
Crud with mongoDb-native and RBAC role/permission for AWS Lambdas
Last updated a year ago by a.sarzina .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @palmabit/lambda-mongo-crud 
SYNC missed versions from official npm registry.

lambda mongo crud

Build Status

Crud with mongoDb-native and RBAC role/permission for AWS Lambdas

Installation

npm install @palmabit/lambda-mongo-crud --save

Usage

const Crud = require('@palmabit/lambda-mongo-crud')

const roles = {
    base: {
        can: ['posts:list','posts:get']
    },
    admin: {
        can: ['posts:save','posts:delete']
    }
}

const crud = new Crud('stringConnection','tableName','admin',roles)

const query = {}
const roleOptions = {}

crud.list(query,'posts:list',roleOptions, (err,docs) => {} )

Tests

npm test

Coverage

npm run-script test-travis

Author

Palmabit

License

MIT license

Current Tags

  • 1.0.0                                ...           latest (a year ago)

4 Versions

  • 1.0.0                                ...           a year ago
  • 0.5.6                                ...           a year ago
  • 0.5.5                                ...           2 years ago
  • 0.5.4                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |