We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
currently the default handler has a type conflict with new PrismaClient({}).$extends({
new PrismaClient({}).$extends({
The text was updated successfully, but these errors were encountered:
hi, im facing the same issue
const prismaClientSingleton = () => { const prismaClient = new PrismaClient().$extends({ result: { image: { url: { needs: { fileName: true }, compute(image) { return `${process.env.NEXT_PUBLIC_HOST}/attachments/${image.fileName}`; }, }, }, }, }); return prismaClient; };
Argument of type 'DynamicClientExtensionThis<TypeMap<InternalArgs & { result: { image: { url: () => { needs: { fileName: true; }; compute(image: { fileName: string; }): string; }; }; }; model: {}; query: {}; client: {}; }>, TypeMapCb, { ...; }>' is not assignable to parameter of type 'PrismaClient<PrismaClientOptions, never, DefaultArgs>'.
Sorry, something went wrong.
yes there should be a solution that works for all versions... will have a look this month
Still looking into it, version 5.2.1 did not fix. for now casting the client to as PrismaClient does the job.
as PrismaClient
No branches or pull requests
currently the default handler has a type conflict with
new PrismaClient({}).$extends({
The text was updated successfully, but these errors were encountered: