# \#area:interface

**URL:** https://discuss.dgraph.io/tag/area-interface/202.md

[Latest](https://discuss.dgraph.io/latest.md) · [Categories](https://discuss.dgraph.io/categories.md) · [Tags](https://discuss.dgraph.io/tags.md)

---

## [Can interfaces implement other interfaces in GraphQL?](https://discuss.dgraph.io/t/can-interfaces-implement-other-interfaces-in-graphql/10013)

<div class="topic-metadata">

**Author:** [@gorillastanley](https://discuss.dgraph.io/u/gorillastanley)\
**Replies:** 7\
**Last updated:** [December 5, 2024, 10:45pm UTC](https://discuss.dgraph.io/t/can-interfaces-implement-other-interfaces-in-graphql/10013 "2024-12-05T22:45:16Z")

</div>

Eg interface A { name: String } interface B implements A { id: String! @id }

---

## [Interfaces in GraphQL represented by DQL with multiple dgraph.type](https://discuss.dgraph.io/t/interfaces-in-graphql-represented-by-dql-with-multiple-dgraph-type/16305)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 3\
**Last updated:** [June 1, 2023, 2:18am UTC](https://discuss.dgraph.io/t/interfaces-in-graphql-represented-by-dql-with-multiple-dgraph-type/16305 "2023-06-01T02:18:32Z")

</div>

This is a knowledge post to help others. GraphQL Schema: enum Diet { CARNIVORE HERBIVORE } interface Animal { id: ID! name: String! @search(by:\[hash\]) diet: Diet predators: \[Predatore\] } type Predatore impl…

---

## [Interface queries stopped to be publicly accessible](https://discuss.dgraph.io/t/interface-queries-stopped-to-be-publicly-accessible/17801)

<div class="topic-metadata">

**Author:** [@Poolshark](https://discuss.dgraph.io/u/Poolshark)\
**Replies:** 8\
**Last updated:** [October 12, 2022, 9:12pm UTC](https://discuss.dgraph.io/t/interface-queries-stopped-to-be-publicly-accessible/17801 "2022-10-12T21:12:04Z")

</div>

I have submitted a ticket regarding this issue a while ago already. Unfortunately, this hasn’t been solved yet and so far it seems there is also no solution for this. The issue We have a couple of interfaces in our sche…

---

## [Correct implementation of an interface](https://discuss.dgraph.io/t/correct-implementation-of-an-interface/17813)

<div class="topic-metadata">

**Author:** [@Poolshark](https://discuss.dgraph.io/u/Poolshark)\
**Replies:** 6\
**Last updated:** [October 5, 2022, 7:25pm UTC](https://discuss.dgraph.io/t/correct-implementation-of-an-interface/17813 "2022-10-05T19:25:39Z")

</div>

I have experienced a very strange behaviour - or at least I do not understand how Dgraph want’s this to be implemented - when it comes to interfaces. I guess it is partly related to this thread. According to the GraphQL…

---

## [Using unions and interfaces and end up with non-nullable field not present](https://discuss.dgraph.io/t/using-unions-and-interfaces-and-end-up-with-non-nullable-field-not-present/15680)

<div class="topic-metadata">

**Author:** [@lumi](https://discuss.dgraph.io/u/lumi)\
**Replies:** 9\
**Last updated:** [October 12, 2021, 1:20pm UTC](https://discuss.dgraph.io/t/using-unions-and-interfaces-and-end-up-with-non-nullable-field-not-present/15680 "2021-10-12T13:20:00Z")

</div>

Hello, I’m wondering if what i came across is a normal behaviour or a bug. Let’s say I have the following schema: interface EntityInBoxInterface { id: ID! name: String! @search(by: \[term\]) } type Object imple…

---

## [Allowing to choose AND or OR (or XOR) rule for @auth directives implemented from interface](https://discuss.dgraph.io/t/allowing-to-choose-and-or-or-or-xor-rule-for-auth-directives-implemented-from-interface/15673)

<div class="topic-metadata">

**Author:** [@kolmez](https://discuss.dgraph.io/u/kolmez)\
**Replies:** 0\
**Last updated:** [September 27, 2021, 8:07pm UTC](https://discuss.dgraph.io/t/allowing-to-choose-and-or-or-or-xor-rule-for-auth-directives-implemented-from-interface/15673 "2021-09-27T20:07:50Z")

</div>

Problem I have an interface IProtect which adds an array of Permission to implementing types. This way I’m able to write auth rules based on the permissions someone possesses or not. What I would have liked to do was s…

---

## [@auth directives don't apply to nested objects when using interfaces?](https://discuss.dgraph.io/t/auth-directives-dont-apply-to-nested-objects-when-using-interfaces/14157)

<div class="topic-metadata">

**Author:** [@elhil](https://discuss.dgraph.io/u/elhil)\
**Replies:** 10\
**Last updated:** [June 8, 2021, 5:28pm UTC](https://discuss.dgraph.io/t/auth-directives-dont-apply-to-nested-objects-when-using-interfaces/14157 "2021-06-08T17:28:07Z")

</div>

Say I have a schema something like this: type Approval { id: ID! approvedAt: DateTime! } type Author @auth( query: { rule: """ query { queryAuthor(filter: { has: approval }) { id } …

---

## [A remote type cannot implement a non-remote interface](https://discuss.dgraph.io/t/a-remote-type-cannot-implement-a-non-remote-interface/12666)

<div class="topic-metadata">

**Author:** [@verneleem](https://discuss.dgraph.io/u/verneleem)\
**Replies:** 2\
**Last updated:** [February 12, 2021, 12:21pm UTC](https://discuss.dgraph.io/t/a-remote-type-cannot-implement-a-non-remote-interface/12666 "2021-02-12T12:21:47Z")

</div>

Experience Report for Feature Request What you wanted to do Create a remote type that does not generate any DQL schema, mutations, or resolvers based upon a interface that does. This remote type would be used as the payl…

---

## [@id directive and interfaces](https://discuss.dgraph.io/t/id-directive-and-interfaces/11642)

<div class="topic-metadata">

**Author:** [@jcsrb](https://discuss.dgraph.io/u/jcsrb)\
**Replies:** 4\
**Last updated:** [November 30, 2020, 11:22am UTC](https://discuss.dgraph.io/t/id-directive-and-interfaces/11642 "2020-11-30T11:22:07Z")

</div>

I am planning my schema and here is something I didn’t understand from the documentation if I used the @id directive inside an interface, does this enforce uniqueness of that value across all types that use that interfa…

---

## [Polymorphism](https://discuss.dgraph.io/t/polymorphism/10425)

<div class="topic-metadata">

**Author:** [@spinelsun](https://discuss.dgraph.io/u/spinelsun)\
**Replies:** 4\
**Last updated:** [September 17, 2020, 11:29am UTC](https://discuss.dgraph.io/t/polymorphism/10425 "2020-09-17T11:29:53Z")

</div>

Hey, Assuming this is my scheme: interface IAnimal{ id: ID! name: String! } type Cow implements IAnimal{ color: String! } type Pig implements IAnimal{ weight: Int! } type Horse implements IAnimal{ n…

---

## [@hasInverse from implementing type to an inerface](https://discuss.dgraph.io/t/hasinverse-from-implementing-type-to-an-inerface/10406)

<div class="topic-metadata">

**Author:** [@spinelsun](https://discuss.dgraph.io/u/spinelsun)\
**Replies:** 2\
**Last updated:** [September 17, 2020, 7:36am UTC](https://discuss.dgraph.io/t/hasinverse-from-implementing-type-to-an-inerface/10406 "2020-09-17T07:36:12Z")

</div>

Hi, I have a bit complicated question This is my scheme interface IArtifact { id: ID! name: String! @search(by: \[exact, regexp\]) cuid: String! @search(by: \[hash\]) @id in: \[Version!\]! tic: DateTime! created…

---

## [Constructing a list of interfaces/unions in Dgraph](https://discuss.dgraph.io/t/constructing-a-list-of-interfaces-unions-in-dgraph/9705)

<div class="topic-metadata">

**Author:** [@ajeet](https://discuss.dgraph.io/u/ajeet)\
**Replies:** 4\
**Last updated:** [August 31, 2020, 12:49pm UTC](https://discuss.dgraph.io/t/constructing-a-list-of-interfaces-unions-in-dgraph/9705 "2020-08-31T12:49:33Z")

</div>

Say I have a schema like so: type Basket{ id: ID! fruits: \[Fruit!\]! } interface Fruit{ id: ID! } type Apple implements Fruit{ color: String! } There is currently no way to construct a list of fruits in place, …
