Search code examples
orientdborientjs

OrientDB Query full Graph without Edge Objects


I want to know if there is a way I can Query the full Graph in OrientDB with TRAVERSE * FROM V without getting the Edges as Objects. Because with the References in all the Objects I get more than 50MB data from a 10 Vertex Graph. I use the orientjs Driver. My Data looks like this: OrientDB data I used the Json-Stringify-Safe to convert the Json to a String.


Solution

  • You can use

    select *,out.asString(),in.asString() from (traverse *  from V) fetchplan [*] in_*:-2 out_*: -2
    

    enter image description here

    enter image description here

    Hope it helps.