$exist does not seem to work in find() method #12598
Unanswered
sadeghhosseini
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using mongoose
6.3.4
.$exists
does not seem to work withinfind()
method.This is my code.
I am trying to get
author
documents which either does not have the fieldbooks
defined on them or thebook
field is defined on them but it is an empty array.Beta Was this translation helpful? Give feedback.
All reactions