I'm using the official page example from Table.where() documentation page:
db.friends.where({name: "David", age: 43}).first(friend => {
console.log("Found David, 43: " + JSON.stringify(friend));
}).catch(error => {
console.error(error.stack || error);
});
It simply doesn't work. It can't find the "first" method.
It returns a WhereClause
.
it should return a Collection
.