"wrong use of var()" error when query variable is empty

As I said, the error only happens if, on a fresh database, I have a mutataion with only nodes that don’t have the items edge. Like so:

{
	"set": [
    {
      "uid": "_:first",
      "isParent": true,
      "name": "first"
    }
  ]
}

EDIT: Just to clarify, I mean first wipe the data, then only add the above mutation, from what you’ve shown you did the above set mutation on top of the existing data, so there are no errors.

1 Like