DBMS / 05. Troubleshooting
Updated: 15. August 2018
Author: Peter Širka

05. Troubleshooting

Professional Support Chat with contributors

Reading a dynamic value for filtering

All data are stored in the instance of DBMS() and you can read some values for future filtering with db.get(path).

var db = DBMS();

db.read('users').make(function(builder) {
    builder.where('id', 100);
}).find('orders').make(function(builder) {
    builder.in('userid', db.get('users.id'));
}).data(function(user) {
    // user.orders will contain user orders