I want to use a where clause on an object. I have tried the below method
DB::table('user')
->where('account_id', 17)
->where('address', '{"city":{"zipcode":0,"code":0},"country":{"code":0,"pincode":0}}')
->delete();
Which is giving below error
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. (SQL: delete from "user".....
Can anyone help me to solve this?
Thanks.