jfinkels / flask-restless

NO LONGER MAINTAINED - A Flask extension for creating simple ReSTful JSON APIs from SQLAlchemy models.
https://flask-restless.readthedocs.io
GNU Affero General Public License v3.0
1.02k stars 301 forks source link

PostgreSQL JSON field filter support #683

Open Glitch-is opened 6 years ago

Glitch-is commented 6 years ago

I've been trying to use the given filters on JSON database fields in PostgreSQL but I keep getting the error

HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts

But there is no obvious way to do any type of type casting. All I would like to do is to check if a JSON field contains a string.

Am I just doing something wrong or have JSON fields not been implemented?

drmclean commented 5 years ago

Looks like JSON Filtering is unsupported. Please can we have support for filtering JSON fields?