Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Releases: aerogear/graphback

0.14.0-alpha13

29 Jun 15:12
248ae13
Compare
Choose a tag to compare
0.14.0-alpha13 Pre-release
Pre-release

0.14.0-alpha12

29 Jun 11:22
Compare
Choose a tag to compare
0.14.0-alpha12 Pre-release
Pre-release

Fix bug with performance

0.14.0-alpha11

26 Jun 14:25
Compare
Choose a tag to compare
0.14.0-alpha11 Pre-release
Pre-release

Minor improvements
Release notes: https://graphback.dev/docs/next/releases

0.14.0-alpha9

25 Jun 11:39
Compare
Choose a tag to compare
0.14.0-alpha9 Pre-release
Pre-release

Fixing minor issues from alpha8
Release notes: https://graphback.dev/docs/next/releases

0.14.0-alpha10

25 Jun 14:49
Compare
Choose a tag to compare
0.14.0-alpha10 Pre-release
Pre-release

Minor improvements
Release notes: https://graphback.dev/docs/next/releases

0.14.0-alpha8

24 Jun 12:59
Compare
Choose a tag to compare
0.14.0-alpha8 Pre-release
Pre-release

The release is broken for mongodb provider
Please use alpha6

0.14.0-alpha7

22 Jun 13:48
47973ad
Compare
Choose a tag to compare
0.14.0-alpha7 Pre-release
Pre-release
fix(graphql-serve): TypeError: get_port_1.default is not a function (…

0.14.0-alpha6

22 Jun 13:29
53561ff
Compare
Choose a tag to compare
0.14.0-alpha6 Pre-release
Pre-release
fix: use new runtime api in graphql-serve (#1506)

0.14.0-alpha5

18 Jun 23:14
Compare
Choose a tag to compare
0.14.0-alpha5 Pre-release
Pre-release
fix: add extra publish commands

0.14.0-alpha4

15 Jun 16:26
53eefef
Compare
Choose a tag to compare
0.14.0-alpha4 Pre-release
Pre-release

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 of KnexDBDataProvider