# GraphQLDependency.create() method · @imqueue/graphql-dependency

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

Returns the dependency description for a GraphQL object type, creating and registering it the first time the type is seen.

**Signature:**

```typescript
static create<TResultType>(type: GraphQLObjectType): GraphQLDependency<TResultType>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| type | GraphQLObjectType | the GraphQL object type to describe |


**Returns:**

[GraphQLDependency](https://imqueue.org/api/graphql-dependency/latest/graphql-dependency.graphqldependency/)<TResultType>

the one description registered against `type`

## Remarks

Use this, or the shorter [Dependency](https://imqueue.org/api/graphql-dependency/latest/graphql-dependency.dependency/) alias, rather than `new` — the constructor is `protected` to make that the only option. The registry is global to the process and keyed by the `GraphQLObjectType` object itself, so any module asking about a type gets the same description, and two separately built types of the same name are two separate entries.

