MongoDB: 2 queries for findUnique lead to error #8276
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: mongodb
Milestone
Bug description
When two queries come in at the same time that execute a prisma.findUnque on our Mongo DB we get the following error:
How to reproduce
We have a front end app that is sending two different queries to the backend, the backend firs gets the user with a findUnqiue query. the queries are being pooled. We were able to get it working by using findFirst.
Expected behavior
Prisma should be able to find a unique value.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: