Hi Ivan,
Can you catch the returning object of Gremlin transformation? We could
automatic wrap the result in a ODocument in such cases.

Lvc@
ᐧ


On 23 August 2014 03:03, Ivan Plaza <[email protected]> wrote:

>
> I figured out a solution, I can get around the issue by explicitly
> creating an ODocument in the gremlin query:
>
> g.V.transform{[_id:it._id]}.transform{new com.orientechnologies.orient.
> core.record.impl.ODocument(it)}
>
> But a cleaner solution would be nice.
>
>
>
> On Thursday, August 21, 2014 10:03:27 PM UTC, Ivan Plaza wrote:
>>
>> Hi,
>>
>> I'm running some gremlin queries over the binary protocol and am having
>> some issues when executing Gremlin queries that transform the output.
>>
>> It seems that whenever I make a Gremlin query that uses transform, for
>> example, if you run g.V.transform{[_id:it._id]}
>>
>> The result of the command contains two fields: @version and value.
>>
>> Unfortunately this result cannot be serialized by OrientDB and returned
>> in the binary response. I get the following error: WARN Cannot serialize
>> record: {_id=1234}
>>
>> My guess is that it can't be serialized because the result doesn't
>> contain the @rid field.
>>
>> The question is, how can I include the @rid in the result so that Orient
>> can serialize the response?
>>
>>
>>  --
>
> ---
> 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 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