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

createApplication()

createApplication<Context, Info>(options): object

Creates a Baeta application by combining the modules.

Type Parameters

Type Parameter

Context

Info

Parameters

ParameterTypeDescription

options

Options<Context, Info>

Configuration options for the application

Returns

object

An object containing the GraphQL schema

NameType

schema

GraphQLSchema

Example

const baeta = createApplication({
modules: [userModule, postModule],
});

const { schema } = baeta;