Skip to content

Introduce _like filterΒ #112

@IanMayo

Description

@IanMayo

Is your feature request related to a problem? Please describe.
No.

The original implementation of _filter was ambiguous. The spec reported that it did an equals match, but the code (and jsdoc) performed a like "%q%" match.

A previous PR (#102) resolved the issue, switching _filter to use equals. But @thevahidal recommended introducing an issue to restore the capability of text-based wildcard searches.

Describe the solution you'd like
Introduce a new _like filter that performs a ILIKE match (case independent wildcard search), to allow wildcard text-based searches.

The url will look like:

/api/tables/customers/rows?_like=FirstName:Franc

Note: the param should accept multiple specified matches, like the _filters query param does.

Describe alternatives you've considered
Did not identify any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions