Type safety with queries
Hi, I am using Primsa ORM, and I am having some problem with the type of the data returned from the query. For the types which can be a null value or string, it always returns as type string, but it can be null as well.
Here is my model:
Here
accountPublicKey
can be null.
but the query :
this always returns accountPublicKey
as string, even if its null.2 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai
for a quick spin!Can you share the returned type you are getting?