Skip to content

Build query to exclude category #1214

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions