Replies: 1 comment
-
You mean something like a union ?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
Firstly, thanks for all the effort involved in Gremlinq, so far it's been a huge help in writing queries. I'm currently working on a project in which I'm having trouble constructing a query to find vertices that share multiple relations. I've included a small toy project below:
Click to expand
I can currently construct a query that returns vertices that share a single relation, in this example all
Student
s who study the sameSubject
as Alice: Bob and Charlie who all share aStudies
edge with the sameSubject
vertex.However I would also like to find vertices with more than one relationship. For example: vertices that share the same
Grade
andYear
vertex as Elizabeth. In this case, it would result in the Fred vertex which also has a C and is in year 2.Similarly finding vertices that share the same
Subject
,Grade
andYear
as Charlie, would result in Alice who studies Maths, has an A Grade and is InYear 1.I've struggled to find and convert gremlin queries that do exactly as I want and have had trouble constructing what I want with Gremlinq so far. Any assistance would be much appreciated, any questions or clarifications I can provide them.
Thanks,
Matt.
Beta Was this translation helpful? Give feedback.
All reactions