# schemaHooks variable · @imqueue/type-graphql-dependency

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

Every deferred wiring hook registered so far, in the order it was registered.

**Signature:**

```typescript
schemaHooks: CreateSchemaHook[]
```

## Remarks

Applying [DependencyFor()](https://imqueue.org/api/type-graphql-dependency/latest/type-graphql-dependency.dependencyfor/) appends to this array; nothing in this package ever drains it. Running the hooks is the application's job, once the schema is built:

```typescript
const schema = await buildSchema({ resolvers: [...] });

schemaHooks.forEach(hook => hook(schema));
```
Skip that and no dependency is registered at all. There is no warning — the decorated classes look wired and their dependency fields stay empty.

