@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
67 lines (50 loc) • 2.63 kB
Markdown
---
lang: en
title: 'API docs: graphql'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/graphql
permalink: /doc/en/lb4/apidocs.graphql.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/graphql](./graphql.md)
## graphql package
[@loopback/graphql](https://github.com/loopbackio/loopback-next/tree/master/extensions/graphql)
## Classes
| Class | Description |
| --- | --- |
| [GraphQLComponent](./graphql.graphqlcomponent.md) | Component for GraphQL |
| [GraphQLResolutionContext](./graphql.graphqlresolutioncontext.md) | Context for graphql resolver resolution |
| [GraphQLServer](./graphql.graphqlserver.md) | GraphQL Server |
| [LoopBackContainer](./graphql.loopbackcontainer.md) | Implementation of <code>ContainerType</code> to plug into <code>type-graphql</code> as the IoC container |
## Functions
| Function | Description |
| --- | --- |
| [registerResolver(ctx, resolverClass, nameOrOptions)](./graphql.registerresolver.md) | Register a GraphQL resolver class |
## Interfaces
| Interface | Description |
| --- | --- |
| [GraphQLComponentOptions](./graphql.graphqlcomponentoptions.md) | Options for GraphQL component |
| [GraphQLServerOptions](./graphql.graphqlserveroptions.md) | Options for GraphQL server |
## Namespaces
| Namespace | Description |
| --- | --- |
| [GraphQLBindings](./graphql.graphqlbindings.md) | Namespace for GraphQL related bindings |
| [GraphQLTags](./graphql.graphqltags.md) | Namespace for GraphQL related tags |
## Variables
| Variable | Description |
| --- | --- |
| [arg](./graphql.arg.md) | Re-exporting type-graphql decorators as lower case versions for two purposes: - To be consistent with LoopBack's naming convention of decorators - Allow future possibility to add extra metadata in addition to type-graphql's behavior, for example, mapping to LoopBack model properties |
| [args](./graphql.args.md) | |
| [argsType](./graphql.argstype.md) | |
| [authorized](./graphql.authorized.md) | |
| [field](./graphql.field.md) | |
| [fieldResolver](./graphql.fieldresolver.md) | |
| [inputType](./graphql.inputtype.md) | |
| [mutation](./graphql.mutation.md) | |
| [objectType](./graphql.objecttype.md) | |
| [pubSub](./graphql.pubsub.md) | |
| [query](./graphql.query.md) | |
| [resolver](./graphql.resolver.md) | |
| [root](./graphql.root.md) | |
| [subscription](./graphql.subscription.md) | |