Closed jmforj closed 1 year ago
FYI I replaced postgres with node-postgres and I'm still facing the same issue:
error: could not identify an equality operator for type json
could it be related to my models?
@jmforj It looks like you may have a syntax issue on line const result = await db.query.users.findMay({;
It looks like you are doing .findMay
when it should be .findMany
.
Hope that helps!
thanks @EthanHogan you are right! haha although this was not the issue
It wasn't a drizzle bug but an issue with a column type in my database.
Thank for your support, closing this one.
@jmforj could you elaborate on what was wrong with your column type in your db? I'm getting the same error when i'm trying to add multiple relations in my query but i can't seem to find out what would be wrong with my db schema
EDIT: changing my json fields to jsonb solved the error ✅
What version of
drizzle-orm
are you using?0.26.5
What version of
drizzle-kit
are you using?0.18.1
Describe the Bug
Whenever I try to fetch a model with multiple relations
I get the following log:
No issue if I only try with one relation.
Expected behavior
The result contains both relations
Environment & setup
Node 18.15.0, Typescript 5.1.3 & Postgres 3.3.5