Skip to content

v0.5.0

Compare
Choose a tag to compare
@jasonkuhrt jasonkuhrt released this 17 Oct 10:06
· 221 commits to master since this release

Features

Fixes

  • d59b9e8 fix: publish scalars from input types (#487)
  • 63277cc fix: only publish non-null list + list members (#452)
  • 758da5b fix: publish object types that don't map to prisma models… (#451)
  • 6551222 fix(publishing): publish dmmf objects (#441)
  • d7d59d8 fix(typegen): enum-field publishing on models (#443)
  • 827ec4e fix(deps): make @prisma/photon a prod dep
  • ec1d848 fix(typegen): delete prev file before writing next (#454)

Other

  • 7460d1b docs: intro, concepts, reference (#459)
  • b008c71 docs: show gql null args flowing into photon

BREAKING CHANGES:

  1. You will need nexus@0.12.0-beta.14

  2. ca22bb0 fix: generated publishers are now all camel-cased (#481)

    import { objectType } from 'nexus-prisma'
    
    const Query = objectType({
      name: 'Query',
      definition(t) {
    -    t.modelnames()
    -    t.modelname()
    +    t.modelName()
    +    t.modelNames()
      }
    })
  3. You now use nexus-prisma as a nexus plugin

    import { nexusPrismaPlugin } from 'nexus-prisma
    import { makeSchema } from 'nexus'
    import * as types from './types'
    
    makeSchema({
    - types: [types, nexusPrismaPlugin({ types })],
    + types,
    + plugins: [nexusPrismaPlugin()]
    })
  4. export NexusPrismaParams renamed to Options