how do i query for all that works with respective company1 or company2?
how do i query for all bosses of respective company1 OR company2?
how do i query for all those works for industry “High Tech”?
if i add a employee with name, age and start_at, and set this employee to work for company1, how do change that query to do this?
can i add a query to append works_for in subsequence mutation?
{
All_users(func: has(name), first: 10000) @filter(NOT has(industry)){
uid
name
age
start_at
}
}
OR
{
All_users(func: has(industry), first: 10000) {
~works_for {
uid
name
age
start_at
}
}
}
Nops. The language you use should have a way for you to assign the industry UID to a variable to then use on a mutation. Mutation and Query can not run together, they are separate operations.