Replacing hardcoded text value in `jsonb`
Hi everyone
I have this data in my
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
Here is the code that I'm trying to work with:
I would appreciate any help and solution for this problem
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 jsonHere is the code that I'm trying to work with:
I would appreciate any help and solution for this problem