-
-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Labels
Description
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.