branches = {
const branches = await client.query(
WOQL.using("_commits")
.triple("v:Branch", "rdf:type", "@schema:Branch")
.triple("v:Branch", "@schema:name", "v:name")
.concat(["branch/", "v:name"], "v:ref")
);
const refPaths = branches.bindings.map((d) => d.ref["@value"]);
return await client.query(
WOQL.or(
...refPaths.map((refPath) =>
WOQL.using(refPath)
.member("v:refPath", [refPath])
.read_document("Actor/Fidel", "v:doc")
)
)
);
}