Skip to content

[Question, Help needed] AND operator #60

@awojtczyk

Description

@awojtczyk

Hello,
Is it possible, to have something like this:

query({
    attractions: { type: [String], paths: ['attractions'], multiple: true },
    categories: { type: [String], paths: ['category'], multiple: true },
    search: {
      type: RegExp,
      paths: ['name', 'description', 'city', 'street']
    }
  }),

And that would I like to have, is to match all of the rules, for example, if attractions and categories are specified, I'd like to have only objects which match both of the rules.

Same for search functionality, both filters should be applied (attractions and categories), then the search regex.

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