Page Contents
Home > @loopback/graphql > registerResolver
registerResolver() function
Register a GraphQL resolver class
Signature:
export declare function registerResolver(ctx: Context, resolverClass: Constructor<object>, nameOrOptions?: string | BindingFromClassOptions): Binding;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | Context object |
resolverClass | Constructor<object> | Resolver class |
nameOrOptions | string | BindingFromClassOptions | (Optional) Resolver name or binding options |
Returns: