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:

NameTypeDescription
modelstring | GraphQLSchemaData model as a string or GraphQL schema. Used to generate the Graphback API resolvers, services and database
configGraphbackAPIConfig-

Returns: GraphbackAPI

Generated schema, CRUD resolvers and services