You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For maximum flexibility and convenience, both callback and promise-style syntax should be valid: This is the rationale for pulling in a Promise lib as per #2
// Callback-stylewp.posts().filter({posts_per_page: 7}).get(function(err,data){if(err){// handle error}else{// do something with data}});// Promise-stylewp.posts().filter({posts_per_page: 7}).then(function(data){// do something with data},function(err){// handle error});
Additionally, if .then is called on a query chain, it assumes the GET method unless otherwise specified:
The first part of this should be addressed by #12 : I'll open a separate issue for PATCH. Leaving this open pending code review; let me know if it's working for you.
For maximum flexibility and convenience, both callback and promise-style syntax should be valid: This is the rationale for pulling in a Promise lib as per #2
Additionally, if
.then
is called on a query chain, it assumes theGET
method unless otherwise specified:The text was updated successfully, but these errors were encountered: