objection-remove-sensitive-fields
v1.0.1
Published
Hide sensitive fields in objection when json is responded through api
Downloads
5
Maintainers
Readme
Remove sensitive data from model during JSON output in objection
Usage
const { Model, mixin } = require('objection')
const RemoveSensitiveFields = require('objection-remove-sensitive-fields')
class User extends mixin(Model, [RemoveSensitiveFields]) {
static sensitiveFields = ['salt','password']
}
What I don't know yet.
Side-Effects as I have just started in objection