Open ErisDS opened 2 years ago
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.
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.