Help! shortestpath Query Structure?

Okay, I think I see a problem with my query: there is no single uid passing into shortest since the context is still all Resource nodes.

Seems like this is a good example of requiring foreach functionality, which to my understanding does not yet exist in DQL.

Is there any other query approach other than:

  1. Query all Resources;
  2. Outside of DQL iterate through all Resources;
  3. Iteratively Call the shortest path query for each Resource?