# Cannot query by multiple IDs on GraphQL

**URL:** <https://discuss.dgraph.io/t/cannot-query-by-multiple-ids-on-graphql/11338>\
**Category:** Dgraph\
**Created:** [November 6, 2020, 9:35pm UTC](https://discuss.dgraph.io/t/cannot-query-by-multiple-ids-on-graphql/11338 "2020-11-06T21:35:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrmatos](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/jrmatos/32/5381_2.png) [@jrmatos](https://discuss.dgraph.io/u/jrmatos)\
**Post date:** [November 6, 2020, 9:35pm UTC](https://discuss.dgraph.io/t/cannot-query-by-multiple-ids-on-graphql/11338/1 "2020-11-06T21:35:00Z")

</div>

I have an array of ids and I want to know if they are already stored on Dgraph. I’m using the following query:

```auto
query {
  queryAuthor(filter: {id: ["id1", "id2", "id3"] }) {
    id
    name
  }
}

```

Error:

```auto
{
  "errors": [
    {
      "message": "Expected type StringHashFilter, found [\"id1\",\"id2\",\"id3\"].",
      "locations": [
        {
          "line": 80,
          "column": 28
        }
      ]
    }
  ]
}

```

I went through this path because of the example in this page: [https://dgraph.io/docs/graphql/queries/search-filtering/#query-list-of-objects](https://dgraph.io/docs/graphql/queries/search-filtering/#query-list-of-objects). But I got the error above when running the query.

---

<div class="post-metadata">

**Author:** ![amaster507](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/amaster507/32/4123_2.png) [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Post date:** [November 7, 2020, 2:02am UTC](https://discuss.dgraph.io/t/cannot-query-by-multiple-ids-on-graphql/11338/2 "2020-11-07T02:02:54Z")

</div>

Currently in 20.07 this list filter is only supported when the predicate is of the type `ID`. I believe you are using `String! @id` for your type though.

Good news is that this is being supported with more filter functions in the upcoming 20.11.

Ref: [Proposal: more filter functions](http://discuss.hypermode.com/t/proposal-more-filter-functions/10359)
