Skip to content

Using rawFilter on a status property type returns a validation error #90

Open
@farez

Description

@farez

Describe the bug

When I use Filter::rawFilter to query a Notion database on a status property type, a validation error is returned.

To Reproduce

Set the filter and send the query:

$filters = new Collection();
$filters->add(Filter::rawFilter("Status",
["status" => [Operators::EQUALS => "Ready"]]
));

$notion = new Notion($access_token)

$rows = $notion->database($id)
->filterBy($filters)
->sortBy($sortings)
->query()
->asCollection();

Expected behavior

A filtered results collection is returned.

Exceptions

Trace can be found here: https://flareapp.io/share/pPv1vqYm#F58

Additional context

Screenshot 2022-12-02 at 11 22 46 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcurrently not supportedDue to a updated dependency, this feature is currently not supported or is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions