Skip to main content

createApplication()

createApplication(options): object

Creates a Baeta application by combining the modules.

Parameters

ParameterTypeDescription

options

Options

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;