Version: 0.15.x
buildGraphbackAPI
#
Index#
Interfaces#
Functions#
Functions#
buildGraphbackAPI▸ buildGraphbackAPI(model
: string | GraphQLSchema, config
: GraphbackAPIConfig): GraphbackAPI
Defined in buildGraphbackAPI.ts:108
Creates all of the components needed for the GraphQL server - resolvers, schema and services.
Parameters:
Name | Type | Description |
---|---|---|
model | string | GraphQLSchema | Data model as a string or GraphQL schema. Used to generate the Graphback API resolvers, services and database |
config | GraphbackAPIConfig | - |
Returns: GraphbackAPI
Generated schema, CRUD resolvers and services