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

How to filter Where null #446

Open
baconcheese113 opened this issue Apr 30, 2020 · 1 comment
Open

How to filter Where null #446

baconcheese113 opened this issue Apr 30, 2020 · 1 comment

Comments

@baconcheese113
Copy link

I'm using Prisma 1 with Prisma Binding and a Postgresql DB.

Is there a way to find rows where a field is null?

This is what I would expect, but doesn't appear to be supported:

prisma.query.matches({ where: { endedAt: null } }, info)
@sevdok
Copy link

sevdok commented Oct 7, 2020

Same problem. How can i select records with null?
Tried "where: { prop: { equals: null } }" but still result is empty list, no errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants