title: How do i create composite unique key in mongoDB
body: <p>How to create a unique key on multiple columns in a collection in mongodb. like we use this ADD UNIQUE <code>unique_index</code>(<code>user</code>, <code>email</code>, <code>phonenumber</code>); in sql.</p>