Answers for "mongo list collection names based on regex"

0

mongo list collection names based on regex

db.getCollectionNames().filter(function (collection) { return /pattern/.test(collection) })
Posted by: Guest on July-01-2021

Code answers related to "mongo list collection names based on regex"

Browse Popular Code Answers by Language