We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Ghost we want to be able to filter posts that have tags, or do not have tags.
IMO the syntax should be filter=tags:null or filter=tags:-null.
filter=tags:null
filter=tags:-null
This doesn't cause an error, but it also doesn't do what you'd expect.
filter=tags:null - should return all posts with no tags filter=tags:-null - should return all posts with at least one tag
Alternatively it could perhaps be done by supporting filtering on counts e.g.
filter=count.tags:0 filter=count.tags:>0
filter=count.tags:0
filter=count.tags:>0
But this I think is a lot less intuitive.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
In Ghost we want to be able to filter posts that have tags, or do not have tags.
Solution
IMO the syntax should be
filter=tags:null
orfilter=tags:-null
.This doesn't cause an error, but it also doesn't do what you'd expect.
filter=tags:null
- should return all posts with no tagsfilter=tags:-null
- should return all posts with at least one tagAlternatively it could perhaps be done by supporting filtering on counts e.g.
filter=count.tags:0
filter=count.tags:>0
But this I think is a lot less intuitive.
The text was updated successfully, but these errors were encountered: