Skip to main content

build

Function build 

Source
pub async fn build(config: AppConfig, host: Host) -> Result<App>
Expand description

Connect, load the schema cache and build the router.

Fails rather than serving something partial when the database cannot be reached or a setting cannot be honoured. GraphQL is the exception: a schema that cannot be built is logged and the rest is served without it.

The application with nothing of the caller’s added. Builder builds the same with routes of the caller’s own beside it.