# @id directive and interfaces

**URL:** <https://discuss.dgraph.io/t/id-directive-and-interfaces/11642>\
**Category:** GraphQL\
**Tags:** kind:question, status:accepted, ticket:created, area:interface\
**Created:** [November 26, 2020, 2:52pm UTC](https://discuss.dgraph.io/t/id-directive-and-interfaces/11642 "2020-11-26T14:52:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jcsrb](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/jcsrb/32/5494_2.png) [@jcsrb](https://discuss.dgraph.io/u/jcsrb)\
**Post date:** [November 27, 2020, 7:47am UTC](https://discuss.dgraph.io/t/id-directive-and-interfaces/11642/3 "2020-11-27T07:47:56Z")

</div>

ok, thanks for confirming that, I was unclear because the schema also generates a `Query` called

```auto
getNamed(
name: String!
)

```

and the `get` queries are supposed to be about finding a single object  
[https://dgraph.io/docs/graphql/queries/search-filtering/#get-a-single-object](https://dgraph.io/docs/graphql/queries/search-filtering/#get-a-single-object)

I don’t have to use that query, just was surprised that an interface does generate queries

---

_[View the full topic](https://discuss.dgraph.io/t/id-directive-and-interfaces/11642)._
