I\'m beginner with MongoDB and i\'m trying some stuff. I want to store URL and to avoid duplicate URL I create an unique index on the url. Like that
collection.c
Also I see that you dont have a collection name specified in getCollection();
What collection would that select? curious