Skip to content

Support for programmatic search filters in findAll method #880

@syu93

Description

@syu93

Server version: 2.0.0
Client version: 2.0.0

Is it possible to add the possibility to pass a list of filters to the findAll method, so we can programmatically add multiple filters to the request ?

It's possible just by changing the method signature and check the type of the parameter (if iterable), if not, fallback on iterate over the argument object.

/**
 * @param  {Array} params A list of params objects
 */
TermBase.prototype.findAll = function findAll(fields) {
    var _arguments = fields instanceof Array ? fields : arguments;
    // ...
}; 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions