Migration from Prisma 1 to Prisma 2 without Typesc...
# orm-help
n
Migration from Prisma 1 to Prisma 2 without Typescript Guide Hi team, we built our backend based on Prisma 1 using following stacks: + graphql-yoga + prisma-binding What is the best way for us to migrate to Prisma 2 without using Typescript as that means we have to rewrite our codebase to TS? Many thanks!
@Jeff
I found here we have instruction for Typescript. But can we migrate without Typescript? https://deploy-preview-356--prisma2.netlify.app/guides/upgrade-from-prisma-1/upgrading-prisma-binding-to-nexus/
r
Hey @Nam 👋 TypeScript is not a requirement to migrate to Prisma 2. You can just do it as well with JS as Prisma 2 fully supports both of those. But if you're migrating to Nexus, then: Nexus framework currently only supports TypeScript, so if you want to upgrade to use Nexus you will have to move over to TS or use @nexus/schema. An alternative would be to migrate to an SDL-first approach that still uses JavaScript, the guide for that is here.
n
Thanks @Ryan. Tha'ts a good news for us. Is there any reason we should migrate from grahpql-yoga to Nexus? Does Prisma 2 no longer work with graphql-yoga?
r
@Nam GraphQL Yoga is completely usable but won't be actively maintained by the team right now as they are focusing on the Nexus framework.