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

findOne() is deprecated in Prisma v2.13.0 #942

Closed
ghost opened this issue Dec 9, 2020 · 1 comment
Closed

findOne() is deprecated in Prisma v2.13.0 #942

ghost opened this issue Dec 9, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Dec 9, 2020

Describe the bug
findOne is deprecated in v2.13.0 of Prisma. Needs to be updated to use .findUnique()

Steps to reproduce
use findOne() you'll encounter the warning.

warn(prisma) findOne is deprecated. Please use findUnique instead.

@ghost ghost added the bug Something isn't working label Dec 9, 2020
@balazsorban44
Copy link
Member

Hi there! Thanks for raising an issue. This has been fixed in #881.

We hope to get a canary release out in December with all the recent changes. Keep in mind, there might be breaking changes until we release it to stable on npm. (We need to add some tests before that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant