Releases: aerogear/graphback
0.14.0-alpha13
See full release notes: https://graphback.dev/docs/next/releases/#0140
0.14.0-alpha12
Fix bug with performance
0.14.0-alpha11
Minor improvements
Release notes: https://graphback.dev/docs/next/releases
0.14.0-alpha9
Fixing minor issues from alpha8
Release notes: https://graphback.dev/docs/next/releases
0.14.0-alpha10
Minor improvements
Release notes: https://graphback.dev/docs/next/releases
0.14.0-alpha8
The release is broken for mongodb provider
Please use alpha6
0.14.0-alpha7
fix(graphql-serve): TypeError: get_port_1.default is not a function (…
0.14.0-alpha6
fix: use new runtime api in graphql-serve (#1506)
0.14.0-alpha5
fix: add extra publish commands
0.14.0-alpha4
Breaking changes
New runtime API
We have removed the complicated multi-step runtime API so that you can create your Graphback API in a couple of lines.
If you were already using the runtime API, replace this:
const runtimeEngine = new GraphbackRuntime(model, graphbackConfig);
const models = runtimeEngine.getDataSourceModels();
const services = createKnexPGCRUDRuntimeServices(models, model, db, pubSub);
const runtime = runtimeEngine.buildRuntime(services);
With this:
import { buildGraphbackAPI } from 'graphback'
import { createKnexDbProvider, createCRUDService } from '@graphback/runtime-knex'
import { PubSub } from 'graphql-subscriptions'
const { typeDefs, resolvers, services } = buildGraphbackAPI(modelDefs, {
serviceCreator: createCRUDService({
pubSub: new PubSub()
}),
dataProviderCreator: createKnexDbProvider(dbConfig)
});
For more advanced usage, refer to the Runtime API documentation.
@db.primary
is removed, use @id
instead
We have replaced the @db.primary
annotation with @id
.
Removed helper method to create CRUD services
Previously you would have done this to create your context and a CRUD service for every model:
const context = createMongoCRUDRuntimeContext(models, schema, db, pubSub)
Now you can create your services and data providers with like this:
import { buildGraphbackAPI } from 'graphback'
import { createKnexDbProvider, createCRUDService } from '@graphback/runtime-knex'
import { PubSub } from 'graphql-subscriptions'
const { typeDefs, resolvers, contextCreator } = buildGraphbackAPI(modelDefs, {
serviceCreator: createCRUDService({
pubSub: new PubSub()
}),
dataProviderCreator: createKnexDbProvider(dbConfig)
});
For more advanced usage, refer to the Runtime API documentation.
Deprecated
PgKnexDBDataProvider
has been deprecated in favor ofKnexDBDataProvider