get-job only returns the immediate dependencies (to avoid trying to ridiculous recursive queries and huge json documents)
(minor) name change
(minor) unused code
(minor) using threading macro to make code read more clearly