# NEST - Empty ReverseNested

**URL:** <https://discuss.elastic.co/t/nest-empty-reversenested/101503>\
**Category:** Elasticsearch\
**Created:** [September 22, 2017, 2:23pm UTC](https://discuss.elastic.co/t/nest-empty-reversenested/101503 "2017-09-22T14:23:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_G](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@Ben\_G](https://discuss.elastic.co/u/Ben_G)\
**Post date:** [September 22, 2017, 2:23pm UTC](https://discuss.elastic.co/t/nest-empty-reversenested/101503/1 "2017-09-22T14:23:29Z")

</div>

im trying to create the following reversenested aggregate:-

```
 "attributetotal": {
          "reverse_nested": {}
  }

```

which works fine in cerebro, with the following:-

`.ReverseNested("attributecount", r => r)`

but it gets ignore in the Json sent.

I'm guessing you have to specify aggs within the reverse.

How can I achieve an empty ReverseNested aggregate?

Thanks

---

<div class="post-metadata">

**Author:** ![Ben\_G](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@Ben\_G](https://discuss.elastic.co/u/Ben_G)\
**Post date:** [September 22, 2017, 2:35pm UTC](https://discuss.elastic.co/t/nest-empty-reversenested/101503/2 "2017-09-22T14:35:03Z")

</div>

ignore this. it works as expected.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 20, 2017, 2:35pm UTC](https://discuss.elastic.co/t/nest-empty-reversenested/101503/3 "2017-10-20T14:35:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
