can you move the variable to the body of the query?
var(func:uid("0x4e1a602e")) @recurse(depth:20, loop:true) {
skill-inference
Skill
Organization
Project
ProjectRole
Endorsement
Resource
g1 as uid
dgraph.type
}