Repository navigation
Cannot use cacheStrategy because of 'Never' type #22489
QuestionI want to query like this: What am I doing wrong? How to reproduce (optional)Expected behavior (optional)No response Information about Prisma Schema, Client Queries and Environment (optional)// Add your schema.prisma// Add any relevant Prisma Client queries here
|
Answered by
ludralph
Dec 22, 2023
Replies: 1 comment 1 reply
|
Hi @hamitgulhan 👋 Thank you for raising this question. How are you instantiating your Prisma Client with Accelerate? Can you rewrite the code as: await this.prismaService.$extends(withAccelerate()).site.findFirst({ where: { url: siteDomain, seller_name: '', }, cacheStrategy: { ttl: 60 }, }) |
1 reply
Answer selected by
hamitgulhan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @hamitgulhan 👋
Thank you for raising this question.
How are you instantiating your Prisma Client with Accelerate?
Can you rewrite the code as: