[ 
https://issues.apache.org/jira/browse/IGNITE-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14639450#comment-14639450
 ] 

Irina Vasilinets commented on IGNITE-964:
-----------------------------------------

Added new rest commands for queries and new handler for them. NodeJs cache has 
method query(Query) that runs query on Ignite server node and returns Cursor to 
the result. User could take next page of the cursor or getAll results. 
Query example:
{code}
var qry = new SqlFieldsQuery("select concat(name, ' ', salary) from 
JsonObject");
qry.setPageSize(2);
ignite.cache(cacheName).query(qry).getAll().then(onResultFunction)
{code}





> node.js: provide ability to run queries
> ---------------------------------------
>
>                 Key: IGNITE-964
>                 URL: https://issues.apache.org/jira/browse/IGNITE-964
>             Project: Ignite
>          Issue Type: Sub-task
>          Components: interop
>            Reporter: Yakov Zhdanov
>             Fix For: sprint-7
>
>
> the implementation will require adding a special handler to HTTP REST 
> subsystem



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to