Skip to content

test to recreate issue with find query containing "$or" and "$regex"#3861

Closed
pete-hotchkiss wants to merge 2 commits intopubkey:masterfrom
pete-hotchkiss:master
Closed

test to recreate issue with find query containing "$or" and "$regex"#3861
pete-hotchkiss wants to merge 2 commits intopubkey:masterfrom
pete-hotchkiss:master

Conversation

@pete-hotchkiss
Copy link

@pete-hotchkiss pete-hotchkiss commented Jun 20, 2022

This PR contains:

Bug with querying database collections

Describe the problem you have without this PR

Since upgrading to 12.5.3 from 11.6.0 - when trying to query a collection using both $or and $regex elements something is barfing meaning code will exit with an error

TypeError: userValue.every is not a function

I've also created a standalone repos that shows this error that if run with the pouchdb deb mode on outputs the following to the console

image

Repos URL if you want it - https://github.com/pete-hotchkiss/rxdb-or-regex-example

@pubkey
Copy link
Owner

pubkey commented Jun 21, 2022

Related apache/pouchdb#8491 and apache/pouchdb#8493

Notice that I will not touch things that should be fixed in the PouchDB repo. If you find a way how RxDB can workaround that problem, you could make a PR with that, otherwise I think you can close this PR.

@pete-hotchkiss
Copy link
Author

indeed - not clear when the fix thats awaiting review is likely to make it into a release. I'll monitor in the mean time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants