Hi Noorul,

Try this:

var totsum = 0;
var doc;
var i;
doc = orient.getDatabase().query("select productID from inf_list_item where 
userId='"+ userID+"'");
var array=[];
for ( i = 0; i < doc.length; i++)
{
  array.push(doc[i].field("productID"));
}
return array;

Regards,
Michela

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to