Destructuring relation types in match statements.

Is there any semantic difference between the following two queries?
match
$user isa user, has id "u0003";
(located: $user, location: $place) isa locating;
match
$user isa user, has id "u0003";
(located: $user, location: $place) isa locating;
match
$user isa user, has id "u0003";
locating (located: $user, location: $place);
match
$user isa user, has id "u0003";
locating (located: $user, location: $place);
If not, which one would be considered more canonical way of writing TypeQL?
2 Replies
krishnan
krishnan19h ago
Does the former still work? That was the preferred way to write relations in 2.x. The latter should be the "preferred" way 3.x, though it's considered syntax sugar for the form below (which makes the below one "canonical"?)
match
$user isa user, has id "u0003";
$_ isa locating, links (located: $user, location: $place);
match
$user isa user, has id "u0003";
$_ isa locating, links (located: $user, location: $place);
rajivranganath
rajivranganathOP19h ago
Thanks for the quick reply! Yes, I found it from this example.

Did you find this page helpful?