typeql
typeql copied to clipboard
Graql: query for variables by multiple IDs
Currently, it is not possible to use multiple IDs within the same query (the workaround is to use multiple variables). Ideally, I would like it to be supported similar to other attributes like that:
match $x id $id; {$id V168040;} OR {$id V118888;}; get;
Thanks for the feature request, @shasha79 ! I think the final syntax for the feature will look like something along the lines of:
match $x id [V168040, V118888]; get $x;
We are discouraging use of IIDs for match queries, as users should use their own keys for concepts instead. In this case, we can roll this issue into more advanced predicates as in https://github.com/vaticle/typeql/issues/213