Skip to content

Filter where boolean values #87

Closed
Closed
@kenjiqq

Description

@kenjiqq

Noticed an inconsistency issue with the default filter method. If you want to filter by a field that is a boolean value this does not work where it does work for numbers and strings:

DS.filter('resource', {
  where: {
    field: false
  }
});

but this do work:

DS.filter('resource', {
  where: {
    field: {
      '===': false
    }
  }
});

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions