Skip to content

Instantly share code, notes, and snippets.

@insanitybit
Created October 28, 2019 21:22
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 insanitybit/f3b51d477fbb69c3fecb4263e1a235ca to your computer and use it in GitHub Desktop.
Save insanitybit/f3b51d477fbb69c3fecb4263e1a235ca to your computer and use it in GitHub Desktop.
After query
{
var(func: eq(node_key, "a6d60b9f-95ba-45a7-80b7-b07940989f2c")) {
uid,
Bindingresult2 as ~created_files
@filter((
(eq(process_name, "7zip.exe")) OR
(eq(process_name, "winrar.exe")) OR
(eq(process_name, "zip.exe"))
)) {
uid,
process_name,
}
Bindingresult1 as ~bin_file
@filter((
(has(node_key))
)) {
uid,
}
}
result(func: uid(Bindingresult1, Bindingresult2) , first: 1)
@filter(uid(Bindingresult1) AND uid(Bindingresult2))
{
uid,
node_key,
process_name,
bin_file {
uid,
node_key,
~created_files {
uid,
node_key,
process_name,
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment