Thanks Luca.

How can we access the property from ODocument ? What are the available
methods of ODocument ?

Regards,
Gaurav
Hi Gaurav,
it returns a ODocument array.

Lvc@



On 20 March 2014 15:09, Gaurav Dhiman <[email protected]> wrote:

> I am using db.query() in server side JS functions.
> What does it acutally return ? Object, Array of Objects or JSON ?
>
> ret = db.query("*select from *ouser");
> What will be the ret ?
>
> If I do *ret.name <http://ret.name>*, function gives error. How to access
> document property in returned result ?
>
>
> ret = db.query("insert into Profile SET name = 'Jay', surname = 'Miner'");
> What will be ret in this case ?
>
> ret = db.query("UPDATE Profile SET nick='Luca' WHERE nick IS NULL");
> What will be ret in this case ?
>
> Regards,
> Gaurav
>
>  --
>
> ---
> 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.
>

 --

---
You received this message because you are subscribed to a topic in the
Google Groups "OrientDB" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/orient-database/iMW3pK4RRwE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected].
For more options, visit https://groups.google.com/d/optout.

-- 

--- 
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