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

Options<Context, Info>

Type Parameters

Type Parameter

Context

Info

Properties

PropertyTypeDefault valueDescription

modules

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

undefined

Array of module objects to include in the application.

Example

const modules = [userModule, postModule, commentModule];

executableSchemaOptions?

ExecutableSchemaOptions

undefined

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

pruneSchema?

boolean

false;

When true, removes fields that don't have corresponding resolvers.