K
Kysely16mo ago
Nil

how to search inside a json type column, I'm using postgresql

I looked in the documentation, and it talks about using the jsonObjectFrom function that is in the kysely lib, but I didn't find it, should I have done the function?
2 Replies
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
koskimas
koskimas16mo ago
In the meantime you can use raw SQL or write your own helpers around that
db.selectFrom('person')
.selectAll()
.where(sql`address->postalCode`, '=', '61710')
db.selectFrom('person')
.selectAll()
.where(sql`address->postalCode`, '=', '61710')
Want results from more Discord servers?
Add your server