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
Thank you for this amazing library!
I have a work around for this issue but I thought i'd post to check if there is a potential bug:
I'd expect to not have to specify deletedAt
deletedAt
Example not working
const collaboration = await ctx.prisma.collaborator.findUnique({ where: { userId_planId: { userId: userId, planId: planId, }, }, select: { planAccessType: true, }, });
It works when i do this
const collaboration = await ctx.prisma.collaborator.findUnique({ where: { userId_planId: { userId: userId, planId: planId, }, deletedAt: null, }, select: { planAccessType: true, }, });
Here is my configuration:
const extendedClient = client.$extends( createSoftDeleteExtension({ models: { Collaborator: true, }, defaultConfig: { field: "deletedAt", createValue: (deleted) => { if (deleted) return new Date(); return null; }, }, }) );
The text was updated successfully, but these errors were encountered:
Hi there,
Thank you for raising this! It's quite likely I need to add a special case for this, I'll look into it soon 😄
I'm glad you are finding the library helpful! Please let me know if you find any other issues or have any feedback 👍
Sorry, something went wrong.
No branches or pull requests
Thank you for this amazing library!
I have a work around for this issue but I thought i'd post to check if there is a potential bug:
I'd expect to not have to specify
deletedAt
Example not working
It works when i do this
Here is my configuration:
The text was updated successfully, but these errors were encountered: