question

washington-l-braga-jr avatar image
washington-l-braga-jr asked Mark Mullan Deactivated answered

Filter items by tag using not equal operator

I've been trying to fetch items that doesn't have a particular tag associated. Anyone ever done anything like that, is it possible at all using existing api?

Whenever I try to use something like filter=tags.name!=some-name I get a 400 error response with this message:

Please use EQUALS(=) with filter tags. Cannot search with other operations.

Also tried to filter using find=tags.name!=some-name but got a 500 Internal Server Error response.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Mark Mullan avatar image
Mark Mullan Deactivated answered

Hello,

The != filter seems to work fine for me on certain queries ( /items?filter=name!=NY%20Steak, for example) but faulty on /items?filter=tags.name!=tag-name specifically. I'll take a look into other filters which may also be not working as intended.

Thanks for bringing this to our attention. For now, I would query /items?expand=tags and implement the filter on your end. I'll keep this thread posted on a potential fix. Is there anything else we can help with?

Mark

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community