Hi Alessandro,
I did few changes in select queries.
now I get following result using getProperty:
*[ { "@type": "d", "@version": 0, "value":
"#-2:0--v(Employee)[#23:0]--v(Post)[#21:0]" }]*
here is my code:
*var record=getlikeKloojjEdge[0];var id=record.getId();var
name=record.getProperty("EMPRID")+"--"+record.getProperty("postRID");return(id+"--"+name);*
*Why it concatenating vertex names as prefix? please suggest.*
On Thursday, 18 August 2016 11:31:09 UTC+5:30, Suyog Kale wrote:
>
> Thanks Alessandro,
> I tried with the approach you have mentioned, but gives me whole vertex.
> below is screenshot:
>
>
>
>
>
> Please suggest,
>
> On Wednesday, 17 August 2016 16:33:31 UTC+5:30, [email protected]
> wrote:
>>
>> Hi,
>> you can use getProperty("yourproperty")
>>
>> Example
>>
>> var g=orient.getGraph();
>> var b=g.command("sql","select from persona");
>> for(i=0;i<b.length;i++){
>> var record=b[i];
>> var id=record.getId();
>> var name=record.getProperty("name");
>> print(id + name);
>> }
>>
>> 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.