Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"title":"One"},{"title":"One two"}]
Query
db.collection.aggregate([{"$match":{"$expr":{"$eq":[{"$size":{"$split":["$title"," "]}},1]}}}])
Result