Skip to content

Build query to exclude category #1214

@infogulch

Description

@infogulch

I'm trying to build this query:

not categories/any(a: a eq 'Green category')

I tried this:

query = self.mailbox.new_query()
query = query.negate(query.any("categories", query.equals("category", "Green category")))

but it compiles to not categories/any(a: a/category eq 'Green category') which gives an error Error Message: Invalid filter clause: Could not find a property named 'category' on type 'Edm.String'.

How can I use the query builder to build the above query?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions