diegohaz / diegohaz/querymen

[Question, Help needed] AND operator

Open
#60 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
134
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Hello,
Is it possible, to have something like this:
```js
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.