Version: 1.0
buildGraphbackAPI
#
Index#
Interfaces#
Type aliases#
Functions#
Type aliases#
GraphbackDataProviderCreatorƬ GraphbackDataProviderCreator: function
Defined in buildGraphbackAPI.ts:57
#
Type declaration:▸ (model
: ModelDefinition): GraphbackDataProvider
Parameters:
Name | Type |
---|---|
model | ModelDefinition |
#
GraphbackServiceCreatorƬ GraphbackServiceCreator: function
Defined in buildGraphbackAPI.ts:56
#
Type declaration:▸ (model
: ModelDefinition, dataProvider
: GraphbackDataProvider): GraphbackCRUDService
Parameters:
Name | Type |
---|---|
model | ModelDefinition |
dataProvider | GraphbackDataProvider |
#
Functions#
buildGraphbackAPI▸ buildGraphbackAPI(model
: string | GraphQLSchema, config
: GraphbackAPIConfig): GraphbackAPI
Defined in buildGraphbackAPI.ts:113
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