Filtering graphql query

#1

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

while

query
{
  allCockpitHello{
    edges{
      node{
        id
      }
    }
  }
}

gives me the out put of

{
  "data": {
    "allCockpitHello": {
      "edges": [
        {
          "node": {
            "id": "Cockpit__Hello__5c65992264343100000001c3"
          }
        },
        {
          "node": {
            "id": "Cockpit__Hello__5c90b32864343100000001ab"
          }
        }
      ]
    }
  }
}

I cannot get any query by

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.

0 Likes