# \#knowledge-base

**URL:** https://discuss.dgraph.io/tag/knowledge-base/199.md

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

---

## [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…

---

## [Suggestion for how to add docker compose network to whitelist](https://discuss.dgraph.io/t/suggestion-for-how-to-add-docker-compose-network-to-whitelist/9600)

<div class="topic-metadata">

**Author:** [@Robin](https://discuss.dgraph.io/u/Robin)\
**Replies:** 2\
**Last updated:** [October 17, 2021, 7:55pm UTC](https://discuss.dgraph.io/t/suggestion-for-how-to-add-docker-compose-network-to-whitelist/9600 "2021-10-17T19:55:24Z")

</div>

In case anyone is trying to use docker compose and being blocked from doing admin commands, this solution has worked for me: #!/usr/bin/env bash set -e RUNNING\_DGRAPH\_CONTAINERS=$(docker-compose ps -q 2\>/dev/null | wc…

---

## [Filter nodes by connected nodes?](https://discuss.dgraph.io/t/filter-nodes-by-connected-nodes/13998)

<div class="topic-metadata">

**Author:** [@Davey](https://discuss.dgraph.io/u/Davey)\
**Replies:** 2\
**Last updated:** [May 4, 2021, 5:29pm UTC](https://discuss.dgraph.io/t/filter-nodes-by-connected-nodes/13998 "2021-05-04T17:29:47Z")

</div>

I have a knowledge graph, where each Idea (graphql type) represents an idea and each Relation (graphql type) represents an edge (connection) between ideas. In a query, is it possible to filter nodes by properties of nod…
