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.