Hi @RJKeevil, You can perform this mutation in one upsert block. I have written a sample upsert block below.
upsert {
query {
q1(func: eq(uniqueValue, "abc")) {
v1 as uid
uniqueValue
}
q2(func: eq(uniqueValue, "def")) {
v2 as uid
uniqueValue
}
q3(func: eq(uniqueValue, "ghi")) {
v3 as uid
uniqueValue
}
}
mutation {
set {
uid(v1) <uniqueValue> "$val1" .
uid(v2) <uniqueValue> "$val2"
uid(v3) <uniqueValue> "$val3" .
}
}
}