I'm trying to filter JSON:API results based on the "greater than" operator (>
).
The filtering documentation lists the operators:
\Drupal\jsonapi\Query\EntityCondition::$allowedOperators = [
'=', '<>',
'>', '>=', '<', '<=',
'STARTS_WITH', 'CONTAINS', 'ENDS_WITH',
'IN', 'NOT IN',
'BETWEEN', 'NOT BETWEEN',
'IS NULL', 'IS NOT NULL',
];
But it also notes that the symbol operators need to be encoded:
&filter[a-label][condition][operator]=%3D <- encoded "=" symbol
Which "encoding" is this referring to? What is the encoding for the other operators (>
, >=
, etc.)? How do I look them up?
urlencode()
, see faqs.org/rfcs/rfc3986.html – Hudri Jan 7 at 8:51