❗These are breaking changes and should probably be coordinated with the frontend team.
1. Update ilike to $like
The MongoDB-Style filtering logic supports a custom operator we've been calling ilike. We want to change this to $like to be more consistent with the other mongo operators (which all start with "$").
2. Update default operator behavior for strings
Currently, if the filter parameter in the querystring omits the operator part for a string value, it will default to ilike.
We want to change this to strict equality ($eq)
❗These are breaking changes and should probably be coordinated with the frontend team.
1. Update
ilike
to$like
The MongoDB-Style filtering logic supports a custom operator we've been callingilike
. We want to change this to$like
to be more consistent with the other mongo operators (which all start with "$").Example:
filter[name][ilike]=brad
-->{ LIKE: [ '#name', '%brad%' ] }
filter[name][$like]=brad
-->{ LIKE: [ '#name', '%brad%' ] }
2. Update default operator behavior for strings Currently, if the filter parameter in the querystring omits the operator part for a string value, it will default to
ilike
. We want to change this to strict equality ($eq
)Example:
filter[name]=brad
-->{ LIKE: [ '#name', '%brad%' ] }
filter[name]=brad
-->{ '=': [ '#name', 'brad' ] }
Also In-scope