Dear developers:
I am trying to create a query that includes order by and limit the result
to a single instance and as Atlas DSL
does not support ORDER BY and LIMIT I am trying to use Gremlin.
The simple Gremlin query like
g.V().has("__guid", "9b1329e0-12ff-4d45-ad51-9455e18736b9" ).toList()
works just fine but anything a bit more complex that includes
order().by(...).limit(1) fails miserably with QueryParsingException.
I would naively think that the Gremlin syntax like this should be
well-formed and perfectly valid:
g.V().has("__guid", "9b1329e0-12ff-4d45-ad51-9455e18736b9"
).order().by("name").limit(1).toList()
but unfortunately it does not work (QueryParsingException)
Does any one know how the Gremlin query with order().by() .... limit(1)
should look like to be palatable by Atlas?
Regards
Dmitry Vasilenko