# Dependencies child/parent

**URL:** <https://discuss.elastic.co/t/dependencies-child-parent/142504>\
**Category:** Kibana\
**Tags:** elastic-stack-graph\
**Created:** [August 1, 2018, 8:18am UTC](https://discuss.elastic.co/t/dependencies-child-parent/142504 "2018-08-01T08:18:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkrol](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tkrol](https://discuss.elastic.co/u/tkrol)\
**Post date:** [August 1, 2018, 8:18am UTC](https://discuss.elastic.co/t/dependencies-child-parent/142504/1 "2018-08-01T08:18:39Z")

</div>

Hey Guys,

I want to build a simple application that will be checking dependencies between some objects with some properties.

For example I have an object A with properties (1,2,3,4), then I have object B with properties (1,2), then I have object C with properties (3,4).

Object A is a parent for object B and C, then obviously I will have more objects which will be parent for A or children of B and C. And they are connected through properties, so object B is a child of object A and connected with edges 1,2 and C is connected with A thru 3,4.

I would like to build this structure on Graph, in that way I will be able to query specific Node and get all dependencies for the specific node.

I was thinking that ElasticSearch Graph API would be a good solution for my need. I am wondering what's your opinion ? Can we specify on Graph what is a child and parent?

I am pretty new to ElasticSearch, so forgive me if I am asking obvious questions 🙂

Thanks

Tom

---

<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:** [August 1, 2018, 9:51am UTC](https://discuss.elastic.co/t/dependencies-child-parent/142504/2 "2018-08-01T09:51:47Z")

</div>

> [@tkrol](#):
>
> Can we specify on Graph what is a child and parent?

Hi Tom,  
The graph API is not designed to easily support the notion of hierarchies with parent and child relationship. This thread is related: [How do you build a org chart?](https://discuss.elastic.co/t/how-do-you-build-a-org-chart/60225)

---

<div class="post-metadata">

**Author:** ![tkrol](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tkrol](https://discuss.elastic.co/u/tkrol)\
**Post date:** [August 1, 2018, 10:41am UTC](https://discuss.elastic.co/t/dependencies-child-parent/142504/3 "2018-08-01T10:41:30Z")

</div>

Cheers Mark, ok so seems like in this case need to try something else 🙂

Tom

---

<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:** [August 29, 2018, 10:41am UTC](https://discuss.elastic.co/t/dependencies-child-parent/142504/4 "2018-08-29T10:41:36Z")

</div>

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