Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot convert undefined or null to object #267

Closed
FlorianKoerner opened this issue Sep 2, 2017 · 3 comments
Closed

TypeError: Cannot convert undefined or null to object #267

FlorianKoerner opened this issue Sep 2, 2017 · 3 comments
Labels

Comments

@FlorianKoerner
Copy link
Contributor

Case

Bug

Issue

When I do this

collection
          .find({ content: null })
          .exec()

I get this error:

Uncaught (in promise) TypeError: Cannot convert undefined or null to object
418: /dist/lib/RxQuery.js

It seems to be a correct syntax in MongoDB:
https://docs.mongodb.com/manual/tutorial/query-for-null-fields/#faq-developers-query-for-nulls

@pubkey pubkey added the BUG 🪲 label Sep 2, 2017
@pubkey
Copy link
Owner

pubkey commented Sep 2, 2017

Looks like a bug where the pouchdb-query is created from the RxQuery. I will investigate..

@pubkey pubkey closed this as completed in b2ee416 Sep 2, 2017
@pubkey
Copy link
Owner

pubkey commented Sep 2, 2017

I fixed the error. But it looks like pouch-find does not respect querying for null-fields. So this must be opened there.

@FlorianKoerner
Copy link
Contributor Author

Works now. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants