Replies: 1 comment 2 replies
-
I'm not quite know with Mongoose but is |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a schema which stores some nested information:
flair.schema.ts:
flair.dto.ts:
update-flair-palette.input.dto.ts:
I want to use filter like: flairs.filter.palette.background eq e6ab09 but when I try to do that it returns an empty array and it queries something like:
Mongoose: flairs.find({ '$and': [ { palette: { '$regex': /\[object Object\]/ } } ]}, { limit: 11, skip: 0 })
(I've found this query using mongoose debug)
What should I do?
Beta Was this translation helpful? Give feedback.
All reactions