Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "0" ,
- "name": "Employee 1" ,
- "schedules": [
- {"Weekdays": "yes"},
- {"Weekends": "no"}
- ]
- } ,
- {
- "id": "0" ,
- "name": "Employee 2" ,
- "schedules": [
- {"Weekdays": "no"},
- {"Weekends": "yes"}
- ]
- }
- ]
- r.db('shank').table('teachers').replace(r.row.without({'schedules': 'Weekends'})).run(connection, function(err, result) {
- if (err) throw err;
- ;
- //confirmation stuff
- });
- });
- "schedules": [
- {"Weekdays": "yes"},
- {}
- ]
- r.row.without({'schedules': {Weekends}})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement