# Graph with nested datatypes

**URL:** <https://discuss.elastic.co/t/graph-with-nested-datatypes/46376>\
**Category:** Kibana\
**Tags:** elastic-stack-graph\
**Created:** [April 5, 2016, 10:48am UTC](https://discuss.elastic.co/t/graph-with-nested-datatypes/46376 "2016-04-05T10:48:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomasfalt](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tomasfalt](https://discuss.elastic.co/u/tomasfalt)\
**Post date:** [April 5, 2016, 10:48am UTC](https://discuss.elastic.co/t/graph-with-nested-datatypes/46376/1 "2016-04-05T10:48:25Z")

</div>

Hi,

I just wonder if it's possible to do graph queries on documents with nested datatypes?

Thanks,  
Tomas Fält

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [April 6, 2016, 12:18am UTC](https://discuss.elastic.co/t/graph-with-nested-datatypes/46376/2 "2016-04-06T00:18:02Z")

</div>

Hi Tomas,  
While the query criteria used to seed the exploration can contain `nested` type clauses the results that we network are currently only terms from the root-level docs.  
If this is a problem you could consider using the copy\_to [1] in your mapping to put values from nested docs into the root.

Cheers  
Mark

[1] [https://www.elastic.co/guide/en/elasticsearch/reference/2.3/copy-to.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/copy-to.html)

---

<div class="post-metadata">

**Author:** ![tomasfalt](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tomasfalt](https://discuss.elastic.co/u/tomasfalt)\
**Post date:** [April 6, 2016, 7:52am UTC](https://discuss.elastic.co/t/graph-with-nested-datatypes/46376/3 "2016-04-06T07:52:54Z")

</div>

Thank you Mark for your prompt reply!

I thought so since nested datatypes don't work directly in Kibana ([Nested type aggregations in Kibana](https://github.com/elastic/kibana/issues/1084) and I will look into using copy\_to and/or include\_in\_parent.

Regards,  
Tomas Fält

---

<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:** [July 6, 2017, 1:44pm UTC](https://discuss.elastic.co/t/graph-with-nested-datatypes/46376/4 "2017-07-06T13:44:08Z")

</div>


