Search code examples
vaticle-typeqlmindmapsdbvaticle-typedb

What is the graql query for getting everything in the graph


I have a small graph with just a couple of vertices. How can I print out all the vertices in the graph using graql?


Solution

  • I assume you mean all the instances. In that case, the easiest way is:

    match $x isa $type; $type isa concept-type; select $x

    If you only want entities, you can change concept-type to entity-type above.