We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello
I'm having an issue with documents that have an array properties like that
document: person properties:
I want to filter with in operator over type property, posible values for this property are "part time", "full time", "remote"
The filter that I'm passing is:
'contracts.type': { in: ["part time", "full time"] }
but I'm getting the following error ERROR BadRequestException: unknown comparison field contracts.type
I tested it in the database
db.getCollection("person").find({ "contracts.type": { "$in": ["part time", "full time"] } })
and I got documents, so I think there is a problem with the library. I tested other operators like iLike, eq, and so on ok
I'm using the following versions
"@nestjs-query/core": "0.30.0", "@nestjs-query/query-mongoose": "0.30.0",
The text was updated successfully, but these errors were encountered:
If I would have to make a quess I think the filter is defined wrong and should look more like this:
{ contracts: { type: { in: ["part time", "full time"] } } }
Sorry, something went wrong.
No branches or pull requests
Hello
I'm having an issue with documents that have an array properties like that
document: person
properties:
-- age
-- type
I want to filter with in operator over type property, posible values for this property are "part time", "full time", "remote"
The filter that I'm passing is:
'contracts.type': {
in: ["part time", "full time"]
}
but I'm getting the following error ERROR BadRequestException: unknown comparison field contracts.type
I tested it in the database
db.getCollection("person").find({
"contracts.type": {
"$in": ["part time", "full time"]
}
})
and I got documents, so I think there is a problem with the library. I tested other operators like iLike, eq, and so on ok
I'm using the following versions
The text was updated successfully, but these errors were encountered: