Thanks Michela, it works. It would be nice if more such examples are posted in documentation for the functions using javascript and groovy languages.
On Monday, August 17, 2015 at 1:05:33 PM UTC+3, [email protected] wrote: > > 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.
