Skip to content

Instantly share code, notes, and snippets.

{
"_id": ObjectId("52e90b52280fdd22450c614"),
"beginning" : "yandex",
"end": "google",
"uniform": false,
"total": 3,
"sequence" : [
"google",
"google",
"yandex"
Schema:
{
First: a
Last: d
Seqence: [a, c, e, d]
}
Works:
db.sequences.findOne({ sequence: { $in: ["a"], $in: ["b"] } })