Skip to content

Simple where filter #88

Closed
Closed
@kenjiqq

Description

@kenjiqq
  if (options.allowSimpleWhere) {
    this.utils.forOwn(params, function (value, key) {
      if (!(key in reserved) && !(key in where)) {
        where[key] = {
          '==': value
        };
      }
    });
  }

With this code in the default filter no other operator then == is supported, so you can't use stuff like >, in etc. It should probably just reuse the operator that is defined in the simple where.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions