createApplication()
createApplication(
options):object
Creates a Baeta application by combining the modules.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
Configuration options for the application |
Returns
object
An object containing the GraphQL schema
| Name | Type |
|---|---|
|
|
|
Example
const baeta = createApplication({
modules: [userModule, postModule],
});
const { schema } = baeta;