Sample Data
g.addV('result').
property('marks', 100).
property('subject', 'Maths').
property('student', A)
g.addV('result').
property('marks', 50).
property('subject', 'English').
property('student', A)
I have details of multiple students, and I want to fetch student name and subject for those students whose highest marks are less than 80.
I tried this but has filter doesn't work after group by
g.V().
hasLabel('result').
order().
by('marks').
group().
by('student').
by(limit(1)).
has('marks', lte(80)).
project('Student', 'Marks').
by('student').
by('marks')
Any alternative possible?
Note : I want to write a query that is supported in Cosmos DB Gremlin API