gitana / gitana-javascript-driver

Cloud CMS JavaScript Driver Library
https://www.cloudcms.com
Apache License 2.0
11 stars 10 forks source link

arguments returned #15

Open tenoriojuann opened 5 years ago

tenoriojuann commented 5 years ago

Would it be possible to return the values as arguments as well as in the context? This would be helpful to keep the context instead of keeping track of this

for example:

return new Promise((resolve)={
    branch.queryNodes(query, pagination).then((nodeMap)=>{
        resolve(nodeMap)
    }
});