Closed rebootcode closed 6 years ago
Are you able to share the code that you're getting the error? I think there might be an error in the documentation, you need to invoke execute
to get the Promise to "start" - https://github.com/aaronpowell/db.js/blob/master/tests/specs/query.js#L257-L265
Also the done
method no longer exists on the Promise object that's returned since it was migrated to ES2015 Promises rather than jQuery Deferred.
I am just trying these code from doc:-
below is the code which gives error -
server.boxro.query('page1').only(page).then(function(results){
console.log(results);
makeAppend(jQuery(results));
});
I'd say that I have an error in the docs, can you try:
server.boxro.query('page1').only(page)
.execute()
.then(function(results){
console.log(results);
makeAppend(jQuery(results));
});
great! That is working now.
Thanks so much.
I am constanly getting an errror
.done
,.then
is not a function.but when i do without
.done
,.then
, it does return most of the function available likedesc
,filter
but
.done
and.then
is not working at all.