Skip to content

Applying filter for type Array field #441

Closed
@radsal

Description

@radsal

Steps to reproduce

Create a model with property type array:
e.g:

"propertyKey": {
      "type": [
        "string"
      ]
    }

Insert some records.
Try to filter the record: {where: { propertyKey: "somevalue"}}

Current Behavior

It doesn't return any records for the filter.
However, using [email protected] package returns the desired response.

Expected Behavior

It should return matching records.

Link to reproduction sandbox

https://github.com/radsal/loopback-sandbox

Additional information

darwin x64 10.19.0

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Related Issues

See Reporting Issues for more tips on writing good issues

strongloop/loopback#4272

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions