Skip to content

MichaelB-99/prisma-bug-reproduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prisma-bug-reproduction

An issue where running multiple findUnique queries with non unique values (extendedWhereUnique) concurrently on a model with a compound unique constraint will cause prisma to return null instead of the record.

  • Only occurs with findUnique and when using extendedWhereUnique
  • Only occurs when the model has a @@unique() constraint
  • Only occurs when findUnique queries are run concurrently

How to reproduce

  1. Clone this repo.
  2. Create the .env file and add the DATABASE_URL env var.
  3. Run yarn or npm install.
  4. Run yarn prisma migrate dev or npm run prisma migrate dev.
  5. Run yarn dev or npm run dev.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published