# Can't I filter strings without a @search directive in the schema? GraphQL Tour Basic Features site 13

**URL:** <https://discuss.dgraph.io/t/cant-i-filter-strings-without-a-search-directive-in-the-schema-graphql-tour-basic-features-site-13/15885>\
**Category:** GraphQL\
**Tags:** kind:question\
**Created:** [October 25, 2021, 10:39pm UTC](https://discuss.dgraph.io/t/cant-i-filter-strings-without-a-search-directive-in-the-schema-graphql-tour-basic-features-site-13/15885 "2021-10-25T22:39:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juri](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/juri/32/8872_2.png) [@Juri](https://discuss.dgraph.io/u/Juri)\
**Post date:** [October 25, 2021, 10:39pm UTC](https://discuss.dgraph.io/t/cant-i-filter-strings-without-a-search-directive-in-the-schema-graphql-tour-basic-features-site-13/15885/1 "2021-10-25T22:39:34Z")

</div>

Hi, dumb basic question _(((i learn now dgraph completely from the ground up to be able to stop asking much dumb questions)))_

```auto
type Person {
  id: ID!
  xid: String! @id
  name: String!
  age: Int @search
  friends: [Person] @hasInverse(field: "friends")
  ownsPets: [Animal] @hasInverse(field: "owner")
}

type Animal {
  id: ID!
  xid: String! @id
  name: String!
  owner: Person @hasInverse(field: "ownsPets")
}

```

Is it possible to filter string IDs **without** a @search directive in the schema on that field? i think No, but I just ask to make sure

So, that means ONLY @id directives are filterable without a @search directive. is that correct?

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/a/ae61cf6868a0901ab1744def5f4a9fe5d303f1fa.png)

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/0/0c94f0893df431c0f28aacc2214e01ad8fc39beb.png)

[https://dgraph.io/tour/graphqlbasic/13/](https://dgraph.io/tour/graphqlbasic/13/)

---

<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:** [October 25, 2021, 11:15pm UTC](https://discuss.dgraph.io/t/cant-i-filter-strings-without-a-search-directive-in-the-schema-graphql-tour-basic-features-site-13/15885/2 "2021-10-25T23:15:07Z")

</div>

Correct.
