I’ve been trying to make basic type of sorting work without any success so far.
I’ve added these ones to my query string:
?sort[0]=sortOrder
response:
{“statusCode”:400,“error”:“Bad Request”,“message”:“Your filters contain a field ‘sort’ that doesn’t appear on your model definition nor its relations”}
?sort=sortOrder
response:
{“statusCode”:400,“error”:“Bad Request”,“message”:“Your filters contain a field ‘sort’ that doesn’t appear on your model definition nor its relations”}
?_sort=sortOrder
response:
{“statusCode”:500,“error”:“Internal Server Error”,“message”:“An internal server error occurred”}
If I try to ‘filter’ same happens:
response:
{“statusCode”:400,“error”:“Bad Request”,“message”:“Your filters contain a field ‘filters’ that doesn’t appear on your model definition nor its relations”}
It looks as if ‘sort’ or ‘filter’ were interpreted as fields from the content-type and not the built-in strapi function for sorting and filtering.
Can you please advise?