Hello Everyone, We have been building on top of A...
# orm-help
a
Hello Everyone, We have been building on top of Apollo and Prisma1 and are finally migrating to Prisma2, but are running into a lot of schema incompatibilities. Since Prisma1 is both an ORM as a GraphQL API we were used to building upon the Prisma1 generated GraphQL schema (opencrud). Over the years our prisma model has grown and is now used trough Apollo by two Apps and React Admin (ra-data-opencrud). With this setup as our staring point we started to look for a way to generate a compatible GraphQL schema for Prisma2. Prisma2 has the concept of generators with a bunch already written by the community: https://www.prisma.io/docs/concepts/components/prisma-schema/generators We started out by looking at the graphql-schema-generator, but this schema is much simpler and nowhere close to the Prisma1 generated GraphQL schema. TypeGraphQL Prisma comes closer, but there are still a lot of incompatibilities. Fixing these incompatibilities might be weeks or maybe months of work. Building our own generator would be a huge project as well. This all made me wonder if I'm missing something? It shouldn't be this hard to migrate, should it? Not entirely sure what to do at this point: • Is there a generator out there that is compatible that I haven't found? • Or should we just implement compatible resolvers ourselves in apollo? • Or pick for instance TypeGraphQL and rewrite the data layer of our App? • What is the risk of staying on Prisma1?