# Mutation: Mass update by query using JSON notation

**URL:** <https://discuss.dgraph.io/t/mutation-mass-update-by-query-using-json-notation/16907>\
**Category:** Dgraph\
**Tags:** dgraph\
**Created:** [February 26, 2022, 2:56am UTC](https://discuss.dgraph.io/t/mutation-mass-update-by-query-using-json-notation/16907 "2022-02-26T02:56:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![galmeida](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@galmeida](https://discuss.dgraph.io/u/galmeida)\
**Post date:** [February 26, 2022, 2:56am UTC](https://discuss.dgraph.io/t/mutation-mass-update-by-query-using-json-notation/16907/1 "2022-02-26T02:56:02Z")

</div>

Can I have some examples of how to update multiple nodes with a single mutation using JSON notation? Or one complete example, using as many filters/resources as possible  
21.03

---

<div class="post-metadata">

**Author:** ![jdgamble555](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/jdgamble555/32/7503_2.png) [@jdgamble555](https://discuss.dgraph.io/u/jdgamble555)\
**Post date:** [February 26, 2022, 3:00am UTC](https://discuss.dgraph.io/t/mutation-mass-update-by-query-using-json-notation/16907/2 "2022-02-26T03:00:23Z")

</div>

You currently can’t unless you use alias:

> [@Cannot update multiple nodes at once](http://discuss.hypermode.com/t/cannot-update-multiple-nodes-at-once/12188/5):
>
> @minhaj do you know if this might be a easy fix to give a better API with possibly little effort?

J
