0
是否可以在Mongodb中使用Like命令获取getCollectionNames?在MongoDB中使用Like命令获取集合名称?
类似的东西: db.getCollectionNames({ “/ 虚拟 /”})
是否可以在Mongodb中使用Like命令获取getCollectionNames?在MongoDB中使用Like命令获取集合名称?
类似的东西: db.getCollectionNames({ “/ 虚拟 /”})
您可以使用db.getCollectionNames()
与Array.filter()
:
db.getCollectionNames().filter(function (collection) { return /dummy/.test(collection) })
什么测试将在这里工作>? –