Comments (5)
Wasn't so hard, closing by 66d3b2f 🔒
from typegraphql-prisma.
Hey @MichalLytek , I saw you labelled this as good first issue
, would you be open for me raising a PR to add Prisma 5 support?
What I want to avoid is working on the PR and then having it sit in the Pull requests
tab unmerged.
from typegraphql-prisma.
It's farily easy process, assuming there's no breaking changes.
All you need to do is bump prisma versions (all packages) in root package json as well as experiments folders, install all deps, run prisma generate, check for diff in generated files, run tests to see all works, bump version in peer deps, bump version in installation docs and that's it!
from typegraphql-prisma.
Hello. I think this change https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-5#using-private-apis-for-a-specific-runtime makes it difficult to upgrade to version 5 since things like DMMF
are not exposed anymore. You need a deeper knowledge to make this work.
from typegraphql-prisma.
Maybe we can try to setup a github workflow to handle prisma update.
- Use renovatebot to automatically detect prisma changes
- Run on renovatebot PR tests
- If success, merge PR on master
- If merge PR on master, increase version and publish on master.
I have already done it on some libraries and it works perfectly. If needed to implement this : you can found a good example here : https://github.com/flexper/paginate-prisma/blob/main/.github/workflows/publish.yml
from typegraphql-prisma.
Related Issues (20)
- Should omit hide fields from d.ts files? HOT 1
- adding count resolver for findmany HOT 1
- isAbstract HOT 9
- Relations in the typing HOT 4
- Missing function property on applyModelsEnhanceMap#fields HOT 1
- Slow prisma generate HOT 4
- Compilation fails when importing "OrderByWithRelationInput" types HOT 3
- Multiple `@TypeGraphQL` Comments on a Single Field
- [Prisma 5] Impossible to use emitOnly properties HOT 2
- Prisma 5 - incompatible type for cursor property HOT 7
- No @generated/type-graphql folder in node_modules HOT 7
- Upgrading to Prisma 5.0.0 and typegraphql-prisma 0.27.0 breaking _count field resolver. New required fields on "ModelCount" class HOT 5
- Incompatible types between prisma and typegraphql-prisma HOT 1
- Potential memory leak in generation with `@types/lodash` HOT 8
- Code is Generated Incorrectly for `0.27.0` HOT 3
- Omitted fields cannot be initialized HOT 2
- Naming a model "Function" in the schema.prisma crashes the generator HOT 1
- Many-To-Many relationship tables are required to have one non-relational field HOT 1
- TypeScript error in overloading UserResolver's deleteManyUser mutation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typegraphql-prisma.