You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a need to filter a field for items which are not null. However, there is currently no filter syntax for either null or not null items. I can submit a pull request to add this feature, but I'm not sure what a suitable syntax is. I have thought of either filter[field]=*exists or filter[field]=!*null (adding the ! syntax for all filters, not just *null), but would like to seek feedback on this before implementing it.
Which syntax is preferred (or should we use something else altogether)?
The text was updated successfully, but these errors were encountered:
I wound up building my own custom filter handling, overriding jsonapi-server's filtering entirely (for various reasons not entirely to do with limitations of this library), so I won't be contributing a PR for this as I originally stated. However I still think it is a useful feature to have.
I have a need to filter a field for items which are not null. However, there is currently no filter syntax for either null or not null items. I can submit a pull request to add this feature, but I'm not sure what a suitable syntax is. I have thought of either
filter[field]=*exists
orfilter[field]=!*null
(adding the!
syntax for all filters, not just*null
), but would like to seek feedback on this before implementing it.Which syntax is preferred (or should we use something else altogether)?
The text was updated successfully, but these errors were encountered: