Filter out null
values in SQL and resulting type
#15113
Labels
kind/feature
A request for a new feature.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: client types
Types in Prisma Client
Problem
Suggested solution
I would prefer using a syntax like this:
This is very descriptive that the
lat
andlng
are only fetched if they are not null and it would remove a lot of unnecessarywhere
clauses.Alternatively, it could be done via the where clause, but the types would need to be fixed.
Alternatives
Fixing type at runtime...
Additional context
Possible fix to this: #15074 - We could use the custom query to define a query that would fix the types, but it is a lot of manual work just in different a file...
The text was updated successfully, but these errors were encountered: