-
Notifications
You must be signed in to change notification settings - Fork 276
feat(epic): 0.12.0 Plugin System and Internal Refactor #242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Relates to #98 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, I understand but some subset of it :) Hope the feedback is useful!
* develop: chore: correct code comment feat: by default typegen as an @types package (#230) chore: simplify tsconfig (#240) docs(prisma2): fix some api and link error (#231) chore: dev script for lib work (#235) core: replace circleci badge link (#233) chore: apply prettier to test code chore: improve assertion error message refactor: simplify integration test (#228) Remove file:. from devDependencies (#227)
* develop: v0.12.0-beta.13 Update README.md fix(typegen): explicitly await removeFile before write (#254) v0.12.0-beta.12 fix(typegen): correct default typegen @types path! v0.12.0-beta.11 chore: fix tests fix(typegen): correct default typegen @types path v0.12.0-beta.10 feat(config): env var for should-generate-artifacts (#244) docs: remove spectrum link (#250) feat(typegen): nicer generated package name (#248) fix(typegen): delete prev file before writing next (#252) refactor: clean up config processing & tests (#246) fix(config): correct default output paths
I noticed that |
…facts, format artifacts
I want to use the plugin system in conjunction with prisma 1 and nexus-prisma (the old one), since Prisma 2 and friends are currently not an option. nexus-prisma 0.3.8 does use nexusWrappedType however (see graphql-nexus/nexus-plugin-prisma#520). Is there some easy way to migrate nexusWrappedType to a public API? |
Summary of all changes in 0.12.0:
shouldExitAfterGenerateArtifacts
to makeSchema configPlugins:
nullabilityGuardPlugin
, to help provide fallback values when null is returned in a non-null field position. See the docs for more info.fieldAuthorizePlugin
. See the docs for more infoauthorize
on the field, but implemented more flexibly as a plugin. This will be automatically added if no plugins are specified, otherwise it will need to be imported & added tomakeSchema
alongside other plugins.Breaking:
graphql-js
to14.5.0
nexusWrappedType
t.modifyType
APIAdditional
outputs
in makeSchema config