WHAT YOU'LL LEARN
  • How to use the builder and factory APIs?
  • How to import and use each exported item?

Overview
anchor

This page documents everything exported from webiny/api/graphql. Import any of the items below directly from this path in your Webiny extensions.

Services

Types & Classes

Services
anchor

GraphQLSchemaFactory
anchor

Abstraction — imported from webiny/api/graphql

Interface GraphQLSchemaFactory.Interface:

GraphQLSchemaFactory

Types:

SchemaBuilderGraphQLSchemaBuilder.Interface:

Interface for building GraphQL schemas by adding type definitions and resolvers.

MethodDescription
addTypeDefs()Add GraphQL type definitions to the schema.
addResolver<TArgs = any, TParent = any>()Add a GraphQL resolver with optional dependencies.
build()Build and return the GraphQL schema.

Types & Classes
anchor

ErrorResponse
anchor

Class — imported from webiny/api/graphql

ListErrorResponse
anchor

Class — imported from webiny/api/graphql

ListResponse
anchor

Class — imported from webiny/api/graphql

NotAuthorizedResponse
anchor

Class — imported from webiny/api/graphql

NotFoundResponse
anchor

Class — imported from webiny/api/graphql

Response
anchor

Class — imported from webiny/api/graphql