it's resolved. i used sideEffect step:
g.V.sideEffect{it.pr=m[it]} 

On Friday, November 11, 2016 at 10:51:20 AM UTC-8, Peter Wang wrote:
>
> Hi Alessandro,
>
> thank you very much for the quick reply! it shows all existing properties. 
> what i'm trying to do is to add a new property to all vertex? do you know a 
> way to create new vertex property and assign value to it in gremlin?
>
> i am sorry for the confusion.
>
> best,
> Peter
>
> On Friday, November 11, 2016 at 12:52:06 AM UTC-8, [email protected] 
> wrote:
>>
>> Hi,
>>
>> you could use 
>> g.V.map('id','age')
>>
>> For more infomation you could see this link 
>> <http://gremlindocs.spmallette.documentup.com/#map>.
>>
>> Best regards,
>> Alessandro
>>
>

-- 

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