Skip to content

Cannot read property '_operators' of null #181

@corydeppen

Description

@corydeppen

I'm getting an error Cannot read property '_operators' of null when using an arg like the following:

filter: { _operators: { publishedAt: { ne: null } } }

It appears this is caused when filter[OPERATORS_FIELDNAME] is evaluated after processFilterOperators is called with null in this case. By checking filter before _prepareAndOrFilter(filter) and returning null if filter didn't exist I received the expected results without an error.

I was wondering if you thought this simple fix was valid or if you had other thoughts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions