Is it possible to execute a query like:
db.artigo.find( { _id : ObjectId('520a504a3004bc615fcfcf16') } )
but using regex ObjectId?
For example, you will get _ids that contains "004" in this position above.
PS. The reason is the introduction of a short service based on some fields, namely _id. I am trying to create an implicit short service instead of an explicit one (with a field generated for this purpose).
source
share