Sorry there was a typo, the query should look like this:

g.V.sideEffect{it.test=true}.iterate()

I tested this using the gremlin console and it seems to work ok (the record 
is not changed), so the problem seems to be specific to the Studio (version 
1.7)


On Wednesday, August 20, 2014 3:25:29 AM UTC, Ivan Plaza wrote:
>
> Hi,
>
> I am getting a weird behavior when using gremlin on orientdb. 
>
> Whenever I use functions like transform or sideffect to change the 
> pipeline values, it automatically changes the underlying orientdb record 
> and saves it.
>
> For example, say I execute the following command in studio:
>
> g.V.transform{it.test=true}.iterate()
>
> This will add the "test" field to all my records permanently.
>
> Is this what it's supposed to do? 
>

-- 

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