prisma-engines icon indicating copy to clipboard operation
prisma-engines copied to clipboard

[MongoDB] Scalar list filter isEmpty is broken

Open Weakky opened this issue 3 years ago • 0 comments

Overview

Consider an empty scalar list. Try the following filter:

{ NOT: { isEmpty: false } }

This currently returns false for an empty list. However, it should return true.

{ isEmpty: false }

Returns false for an empty list, but it's negated. So !false == true

Weakky avatar Aug 17 '22 10:08 Weakky