Open travbus opened 5 years ago
It can.
How abouts? I get how to write the validation rule in the _users _design/_auth doc to except it. But how do I pass the role. I tried code below with no luck
db.signUp('robin', 'dickgrayson', {
metadata : {
email : 'robin@boywonder.com',
birthday : '1932-03-27T00:00:00.000Z',
likes : ['acrobatics', 'short pants', 'sidekickin\''],
},
roles : { ['basic']
}
}, function (err, response) {
// etc.
});
Never mind I figured it out posted answer here
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context
Your Environment