github graphql-nexus/nexus v0.16.0

latest releases: next, 1.4.0-next.13, 1.4.0-next.12...
3 years ago

BREAKING CHANGES

MIGRATION GUIDE

As Nexus Schema just made output types and list items nullable by default, there's a couple of changes you need to do to produce the same schema as before the update.

Changing global defaults to revert to non-nullable output types

import { makeSchema } from '@nexus/schema'

makeSchema({
+  nonNullDefaults: {
+    output: true
+  }
})

Changing type-level configuration to revert to non-nullable output types

import { objectType } from '@nexus/schema'

objectType({
  name: 'User',
  nonNullDefaults: {
+   output: true
  }
  definition(t) {
    /* ... */
  }
})

Updating lists output types to be non-nullable

import { objectType } from '@nexus/schema'

objectType({
  name: 'User',
  definition(t) {
    t.field('posts', {
-     list: true
+     list: [true]
    })
  }
})

Features

Fixes

Improvements

  • 2fef488 tmp: tmp/index.html
  • 99b34f6 temp: Temporary redirects for old nexus.js.org (#514)
  • 5e156ac docs: update asNexusMethod example with the changes from #473 (#476)

Chores

Unspecified Changes

Don't miss a new nexus release

NewReleases is sending notifications on new releases.