# Empty array in update payload on update(set) mutation

**URL:** <https://discuss.dgraph.io/t/empty-array-in-update-payload-on-update-set-mutation/14827>\
**Category:** GraphQL\
**Tags:** mutation, kind:bug\
**Created:** [July 5, 2021, 8:55am UTC](https://discuss.dgraph.io/t/empty-array-in-update-payload-on-update-set-mutation/14827 "2021-07-05T08:55:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![denis111](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/denis111/32/7584_2.png) [@denis111](https://discuss.dgraph.io/u/denis111)\
**Post date:** [July 5, 2021, 8:55am UTC](https://discuss.dgraph.io/t/empty-array-in-update-payload-on-update-set-mutation/14827/1 "2021-07-05T08:55:25Z")

</div>

* * *

## Report a GraphQL Bug

On update (set) mutation the returned array of updated elements is always empty. This doesn’t happen with add mutation when adding new elements.

### What edition and version of Dgraph are you using?

Edition:

- SlashGraphQL
- [x] Dgraph (community edition/Dgraph Cloud)

If you are using the community edition or enterprise edition of Dgraph, please list the version:

> **Dgraph Version**
>
> ```auto
> $ dgraph version
>  
> v21.03
> 
> ```

### Have you tried reproducing the issue with the latest release?

yes

### Steps to reproduce the issue (paste the query/schema if possible)

json query:

```json
{
  "operationName": "FolderUpdate",
  "variables": {
    "folder": {
      "filter": {
        "id": [
          "0x3f90c"
        ]
      },
      "set": {
        "name": "name1"
      }
    }
  },
  "query": "mutation FolderUpdate($folder: UpdateFolderInput!) { updateFolder(input: $folder) { __typename numUids folder { id name } } }"
}

```

### Expected behaviour and actual result.

expected to return data.updateFolder.folder array with updated elements but returns empty array:

```json
{
  "data": {
    "updateFolder": {
      "__typename": "UpdateFolderPayload",
      "numUids": 1,
      "folder": []
    }
  },
...

```

When I do create (add) mutation the Add payload has array of added elements.

---

<div class="post-metadata">

**Author:** ![denis111](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/denis111/32/7584_2.png) [@denis111](https://discuss.dgraph.io/u/denis111)\
**Post date:** [July 7, 2021, 1:17pm UTC](https://discuss.dgraph.io/t/empty-array-in-update-payload-on-update-set-mutation/14827/2 "2021-07-07T13:17:09Z")

</div>

Sorry, you can close this topic. By accident I was executing previous Dgraph version, with v21.03 I have no problem.
