Help! shortestpath Query Structure?

This block is wrong. There’s no such a syntax in DQL. You have two roots params applied. They should be two different blocks. Something like

{

  S as var(func: eq(XID, "Skill/NAICS/54"))
  T as var(func: eq(dgraph.type,"Resource"))

    

  path as shortest(from: uid(S), to: uid(T), numpaths: 1) { 
      Skill.Skills @facets(resistance)
      Skill.Resources @facets(resistance)
      Skill.Organizations @facets(resistance)
      Organization.Projects @facets(resistance)
      Project.ProjectRoles @facets(resistance)
      ProjectRole.Resource @facets(resistance)
    }
    
    path(func: uid(path)) {
     Name
     XID
    } 
  
}

But I don’t think it is possible to do a shortest path for many possible resources nodes.