# DependentTypeRelations interface · @imqueue/type-graphql-dependency

Source: https://imqueue.org/api/type-graphql-dependency/latest/type-graphql-dependency.dependenttyperelations/
Published: 2026-07-31
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/type-graphql-dependency 3.0.3 — generated reference, not hand-written

One relation from the decorated class to a dependent class: where the loaded objects are attached, and how they are matched.

**Signature:**

```typescript
export interface DependentTypeRelations 
```

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [as](https://imqueue.org/api/type-graphql-dependency/latest/type-graphql-dependency.dependenttyperelations.as/) |  | string | The name of the field on the decorated class the loaded objects are written to. It must be a field of the generated GraphQL type, or the hook throws `TypeError` when the schema is created. |
| [filter](https://imqueue.org/api/type-graphql-dependency/latest/type-graphql-dependency.dependenttyperelations.filter/) |  | { \[foreignField: string\]: string; } | How to find the dependent objects belonging to each instance: each key is a field of the \*dependent\* type that its loader filters on, and each value is the field on the \*decorated\* class supplying the values. |

