# I would like to execute an example of Graph query in some example data to understand how it works, but when i execute, nothing is returned

**URL:** <https://discuss.elastic.co/t/i-would-like-to-execute-an-example-of-graph-query-in-some-example-data-to-understand-how-it-works-but-when-i-execute-nothing-is-returned/370402>\
**Category:** Elastic Search\
**Created:** [November 12, 2024, 1:54pm UTC](https://discuss.elastic.co/t/i-would-like-to-execute-an-example-of-graph-query-in-some-example-data-to-understand-how-it-works-but-when-i-execute-nothing-is-returned/370402 "2024-11-12T13:54:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcelo\_Mendes](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Marcelo\_Mendes](https://discuss.elastic.co/u/Marcelo_Mendes)\
**Post date:** [November 12, 2024, 1:54pm UTC](https://discuss.elastic.co/t/i-would-like-to-execute-an-example-of-graph-query-in-some-example-data-to-understand-how-it-works-but-when-i-execute-nothing-is-returned/370402/1 "2024-11-12T13:54:06Z")

</div>

I'm trying to execute this example:

```auto
POST /transacoes/_bulk
{ "index": { "_id": "1" } }
{ "conta_origem": "A", "conta_destino": "B", "valor": 100 }
{ "index": { "_id": "2" } }
{ "conta_origem": "A", "conta_destino": "C", "valor": 150 }
{ "index": { "_id": "3" } }
{ "conta_origem": "B", "conta_destino": "C", "valor": 200 }
{ "index": { "_id": "4" } }
{ "conta_origem": "C", "conta_destino": "A", "valor": 50 }

POST /transacoes/_graph/explore
{
  "query": {
    "match_all": {}
  },
  "vertices": [
    {
      "field": "conta_origem.keyword"
    },
    {
      "field": "conta_destino.keyword"
    }
  ],
  "connections": {
    "vertices": [
      { "field": "conta_destino.keyword" }
    ]
  }
} 

```

But when i execute the query, nothing is returned. Is there soming i'm doing wrong?

---

<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:** [December 10, 2024, 1:54pm UTC](https://discuss.elastic.co/t/i-would-like-to-execute-an-example-of-graph-query-in-some-example-data-to-understand-how-it-works-but-when-i-execute-nothing-is-returned/370402/2 "2024-12-10T13:54:33Z")

</div>

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