Closed TheUKDave closed 4 years ago
We just solved this issue yesterday(Duplicate of #157), so make sure you are using v0.9.2. In your case you have to use either single quotes or double quotes to escape special characters(which is comma in this case) i.e
GET /?query=(id__in: "[1,2]"){*}
Refer to the updated documentation for more details about escaping special characters https://django-restql.yezyilomo.com/querying_data/#query-arguments
I need to be able to filter an API on a list of IDs. I have amended my filter to allow for this, but I cannot find a syntax that will get through to my filter. Is it possible?
It seems anything with a comma in, breaks the parsing and results in a QuerySyntaxError being returned, e.g: