Replacing hardcoded text value in `jsonb`
Hi everyone
I have this data in my
jsonb
column of my Postgres database:
And I have this current query that I search for a row based on a condition that depends on the json value above.
This query works fine and returns what is expected:
However when I try to replace "75" with a dynamic value I get an error of PostgresError: invalid input syntax for type json
Here is the code that I'm trying to work with:
I would appreciate any help and solution for this problem0 Replies