-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Unable to check if an optional relation is null #214
Comments
Not sure if this is a me problem or if the filters from Prisma don't allow a method to do this but I'll check it out |
Here's a snippet of something similar on typescript.
Finding all the users where the referredBy is not null, but the referredOneMonthTrialExpiryDate is null. ReferredBy in this case is a relation, referredOneMonthTrialExpiryDate is just a simple DateTime. Hope that's somewhat helpful. |
I've thought about it, and I think I'll need to custom-implement this operation myself. The example you provided is basically EDIT: Done in 3637240 |
That makes sense! Thanks @Brendonovich :). |
Following from discord.
Given an optional relation
It would be nice to filter on this field e.g. get all the users that don't have a profile.
The text was updated successfully, but these errors were encountered: