Dgraph Allows you to update many items at once, ONLY if you update with the same values. This is a problem for simple updates.
Let's say I want to update two different posts with ids 0x1 and 0x2 with values title: 'outcaste' and title: 'dgraph'. The only way to do this currently is with two updates using alias like so:
Dgraph Allows you to update many items at once, ONLY if you update with the same values. This is a problem for simple updates.
Let's say I want to update two different posts with ids
0x1
and0x2
with valuestitle: 'outcaste'
andtitle: 'dgraph'
. The only way to do this currently is with two updates using alias like so:However, I should be able to do just this:
The difference here is that the input should accept an array like so:
This would work EXACTLY like the add works, and would save some time trying to write complex mutations.
This is just a simple example, but complex examples really can prove how important this is.
Please see this discuss post for more info.
J