# Filtering graphql query

**URL:** <https://discourse.getcockpit.com/t/filtering-graphql-query/674>\
**Category:** General\
**Created:** [March 22, 2019, 6:21pm UTC](https://discourse.getcockpit.com/t/filtering-graphql-query/674 "2019-03-22T18:21:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hypothesis-github](https://avatars.discourse-cdn.com/v4/letter/h/9de0a6/32.png) [@Hypothesis-github](https://discourse.getcockpit.com/u/Hypothesis-github)\
**Post date:** [March 22, 2019, 6:21pm UTC](https://discourse.getcockpit.com/t/filtering-graphql-query/674/1 "2019-03-22T18:21:06Z")

</div>

I am unable to get a query out of my graphql and I wonder why the following codes fail me .

while

```auto
query
{
  allCockpitHello{
    edges{
      node{
        id
      }
    }
  }
}

```

gives me the out put of

```auto
{
  "data": {
    "allCockpitHello": {
      "edges": [
        {
          "node": {
            "id": "Cockpit __Hello__ 5c65992264343100000001c3"
          }
        },
        {
          "node": {
            "id": "Cockpit __Hello__ 5c90b32864343100000001ab"
          }
        }
      ]
    }
  }
}

```

I cannot get any query by

```auto
query
{
  allCockpitHello{
    edges{
      node ( id :"Cockpit __Hello__ 5c90b32864343100000001ab"){
        Name{
          value
        }
      }
    }
  }
}

```

I want to filter out the names by ID so that my out put gives me only one result.
