Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ic6 #22

Merged
merged 1 commit into from
Aug 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nebula/queries/interactive-complex-13.ngql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
find shortest path from $person1Id to $person2Id over KNOWS yield path as p|yield collect(length($-.p)) AS l | yield case size($-.l) when 0 then -1 else $-.l[0] end;
find shortest path from $person1Id to $person2Id over KNOWS BIDIRECT yield path as p|yield collect(length($-.p)) AS l | yield case size($-.l) when 0 then -1 else $-.l[0] end;
6 changes: 5 additions & 1 deletion nebula/queries/interactive-complex-6.ngql
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
GO 1 to 2 steps from $personId over KNOWS bidirect where id($$)<>$personId yield id($$) as friend | GO from $-.friend over POST_HAS_CREATOR reversely yield id($$) as friendPost | GO from $-.friendPost over HAS_TAG where $$.`Tag`.name==$tagName yield id($^) as postWithSpecifiedTag | GO from $-.postWithSpecifiedTag over HAS_TAG where $$.`Tag`.name<>$tagName yield properties($$).name as otherTagName, id($^) as commonPost | group by $-.otherTagName yield $-.otherTagName as otherTagName, count($-.commonPost) as postCount | order by $-.postCount desc | limit 10
GO 1 to 2 steps from $personId over KNOWS bidirect where KNOWS._dst <> $personId yield KNOWS._dst as friend | \
GO from $-.friend over POST_HAS_CREATOR reversely yield POST_HAS_CREATOR._dst as friendPost | \
GO from $-.friendPost over HAS_TAG where $$.`Tag`.name==$tagName yield HAS_TAG._src as postWithSpecifiedTag | \
GO from $-.postWithSpecifiedTag over HAS_TAG where $$.`Tag`.name<>$tagName yield $$.`Tag`.name as otherTagName, HAS_TAG._src as commonPost | \
group by $-.otherTagName yield $-.otherTagName as otherTagName, count($-.commonPost) as postCount | order by $-.postCount desc, $-.otherTagName ASC | limit 10