Role-based security, authorization, and filtering utilities for Thinky/RethinkDB
Install
One command and you're ready to secure your data:
npm install palisade --save
Now, check out the documentation to get started!
Example
The documentation has more detailed examples, but here's a quick peek:
ES6
// your thinky connection instance const User = db // Anyone can list and read users and their public fields (id and name)// Users can update themselves, but only their own birthday// Admins can create, update, replace, or delete any user
ES5
// your thinky connection instancevar db = ;var palisade = ;var screenDeep = palisadescreenDeep; var User = db; // Anyone can list and read users and their public fields (id and name)// Users can update themselves, but only their own birthday// Admins can create, update, replace, or delete any user;