> For the complete documentation index, see [llms.txt](https://developer.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.collibra.com/api/guides/output-module/the-output-module-query-language/filtering-operators/filtering-in-hierarchy.md).

# Filtering in Hierarchy

When the `EQUALS/NOT_EQUALS` and `IN/NOT_IN` operators are used in conjunction with an `Id` property of an asset, a `RelationType` or a `Community` can take an additional `descendants: true` parameter. When true, the query engine will force an `IN` or `NOT_IN` filter and add all `Id`s from the child assets, relation types or communities. This allows selecting the following assets.

* All assets under a community, including the subcommunities.
* All assets that are of type "X" or one of its subtypes.
* All assets with all subtypes that implement trait "X".
