Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{userId:{chartId:NumberInt(10000234)}}]
Query
db.collection.aggregate([{$match:{$expr:{$regexMatch:{input:{$toString:"$userId.chartId"},regex:"1000"}}}}])
Result