v0.5.0
Features
- abe6c9c feat: turn into nexus plugin (#434)
- 3921aa5 feat(typegen): NEXUS_SHOULD_GENERATE_ARTIFACTS env var (#456)
- b44d644 feat(typegen): pretty @types package name
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:
-
You will need
nexus@0.12.0-beta.14
-
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() } })
-
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()] })
-
export
NexusPrismaParams
renamed toOptions