Skip to content

Behaviour of query/predicate does not match behaviour of MongoDB storage backend #187

@torie

Description

@torie

The behaviour of the filter operators in the query package does not work when the document field being matched against is an array. For example, given the following document and query, the MongoDB storage backend will return a match, while the resource/testing/mem backend will not.

Document

{ "foo": ["bar", "baz"] }

Query

{ field: { $in: ["bar"] } }

This is the case for the following operators, $eq, $in $ne, $nin.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions