1.0.0-beta.53
Pre-release
Pre-release
⚠️ Breaking
Version 1.0.0-beta.52
introduced an issue with accessing Prisma client from inside a custom resolver. To address this, the customResolvers
parameter has been removed from the PrismaAppSync constructor. Instead, PrismaAppSync now exposes a new registerCustomResolvers
method:
// before
const app = new PrismaAppSync({
connectionUrl: String(process.env.CONNECTION_URL),
customResolvers: { incrementPostsViews }
})
// after (1.0.0-beta.53+)
const app = new PrismaAppSync({
connectionUrl: String(process.env.CONNECTION_URL)
})
app.registerCustomResolvers({ incrementPostsViews })
Non-breaking
- Feat: For contributors, running
yarn create prisma-appsync-app . --test
now also creates a custom resolver for testing purpose. - Fix: PNPM install not running
prisma generate
by default (issues/11)