Skip to content

Support variables in mutation blocks. #919

@ashwin95r

Description

@ashwin95r

There would be dependency between query and mutation blocks (just like we have among query blocks now).

Eg:

mutation {
 set {
  var(adults) <isadult> "true" .
  <a> <b> <c> .
  . . .
 }

 delete {
  var(adults) <ischild> "true" .
 } 
}
{
 me(id: a) {
   adults as friends @filter(gt(age, 18))
 }
}

This would fetch my friends whose age is above 18. Then for each UID in that list perform the mutation.

Metadata

Metadata

Assignees

Labels

investigateRequires further investigation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions