I want to get all books that have nil empty string or empty hash on a property
Book.where(references: [nil, "", {}])
This gives me an error.
ERROR: invalid input syntax for type json LINE 1: ...on_id" = $1 AND ("books"."references" IN ('', '{}') ... ^ DETAIL: The input string ended unexpectedly. CONTEXT: JSON data, line 1:
references is a json field on a postgres database