title: How to restore gzipped Monogdb single collection?
body: <p>Hye everyone, I am new to mongodb I dumped one of my collection using following command <code>mongodump --db somedb --collection somecollection --out - | gzip &gt; collectiondump.gz</code> given on the <a href="https://stackoverflow.com/questions/4880874/how-do-i-create-a-mongodb-dump-of-my-database">link</a> now when I try to restore it using mongorestore it gives Error dont know what to do with file.</p>
  
  <p>kindly help me I used this way because the answer in the given link got too much upvotes</p>
  
  <p><a href="https://i.stack.imgur.com/p2Elw.png" rel="nofollow noreferrer">Error image</a></p>