asif
12/4/2018 - 9:26 AM

node-mongo-addIndexing

  db.collection('chats').createIndex(
        { userId: "hashed" }, function (err, result) {
            if (err)
            console.log('Indexing: ' + err)
            else
            console.log('Indexing: ' + result);
        });