Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still current with Prisma? #9

Open
pkellner opened this issue Feb 9, 2022 · 1 comment
Open

Still current with Prisma? #9

pkellner opened this issue Feb 9, 2022 · 1 comment

Comments

@pkellner
Copy link

pkellner commented Feb 9, 2022

Sorry for making this an issue but not sure where else to ask.

Does this work with the latest prisma? I can't tell if there is another or built in feature that does similar. This seems like it should be a core feature of Prisma. Thanks

@Asjas
Copy link

Asjas commented Feb 20, 2022

This library doesn't use the latest Prisma Queries such as findUnique or findFirst. It still caches old queries such as findOne which have been removed from Prisma. @pkellner

I created a redis-based version of this library that is updated for the latest Prisma version, if you wanted to try that 🙂

https://github.com/Asjas/prisma-redis-middleware

This seems like it should be a core feature of Prisma.

There are open issues in the Prisma GitHub repo for a core caching feature but the Prisma team isn't working on it at the moment. Caching is hard 🤣

prisma/prisma#11777
prisma/prisma#3165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants