Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Last active February 20, 2022 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vladbatushkov/e7c8209e7e3ea0fcc2050181298104dd to your computer and use it in GitHub Desktop.
Save vladbatushkov/e7c8209e7e3ea0fcc2050181298104dd to your computer and use it in GitHub Desktop.
Common folder consumers
MATCH (s:File)<-[:DEPENDS_ON*]-(consumer:File)
WHERE s.name =~ 'common.*'
RETURN DISTINCT s.name as subject,
collect(DISTINCT consumer.name) as consumers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment