Skip to content

1.0.0-beta.53

Pre-release
Pre-release
Compare
Choose a tag to compare
@maoosi maoosi released this 26 Apr 05:30
· 383 commits to main since this 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 })

See docs for more details.

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)