typeql icon indicating copy to clipboard operation
typeql copied to clipboard

Graql: query for variables by multiple IDs

Open shasha79 opened this issue 6 years ago • 1 comments

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;

shasha79 avatar Dec 27 '18 10:12 shasha79

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;

haikalpribadi avatar Dec 27 '18 15:12 haikalpribadi

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

flyingsilverfin avatar Jan 10 '23 14:01 flyingsilverfin