Skip to main content
Register a provider for a type, then annotate a resolver parameter with that type.
register_dependency(Type, provider) is the imperative form. Providers receive the execution context, may return awaitables, and are resolved once per execution before reuse by matching resolver parameters. Dependency types are removed from the public GraphQL argument list. Prefer concrete, purpose-specific service types so classification remains unambiguous.