Skip to main content
Version: Next (2.x)

Options<Context, Info>

Type Parameters

Type Parameter

Context

Info

Properties

PropertyTypeDescription

modules

ModuleCompilerFactory<Context, Info, TypesResolversMap<Context, Info>>[]

Array of module objects to include in the application.

Example

const modules = [
userModule,
postModule,
commentModule
];

buildSchema?

(options) => GraphQLSchema

Optional function to build the GraphQL schema. If not provided, the default implementation using makeExecutableSchema will be used. This allows you to customize the schema building process, for example by using a different library or applying additional transformations.

executableSchemaOptions?

ExecutableSchemaOptions

Options to pass to makeExecutableSchema. See https://the-guild.dev/graphql/tools/docs/generate-schema#makeexecutableschema

plugins?

AppPlugin[]

Optional array of plugins to extend the functionality of the application.