Mongodb, a collection called "blog" has a "tags" field, just like that
blog1.tags=['javascript', 'node.js', 'express'] blog2.tags=['javascript', 'jquery'] blog3.tags=['javascript', 'node.js']
now i need a list of hot tags that like this
[['javascript', 3], ['node.js', 2], ['express', 1], ['jquery', 1]]
How can i do this?
source share