title: Difference between Document and Query in mongoose?
body: <p>According to the mongoose documentation:</p>
  <p>Mongoose models provide several static helper functions for CRUD operations. Each of these functions returns a mongoose <strong>Query</strong> object.</p>
  <p><strong>Models</strong> are fancy constructors compiled from Schema definitions.</p>
  <p>Mongoose documents represent a one-to-one mapping to documents as stored in MongoDB. Each <strong>document</strong> is an instance of its Model.</p>
  <p>Now, all the static CRUD functions on the Model return a Query. However, in the documents section, under guides, it says &quot;When you load documents from MongoDB using model functions like findOne(), you get a Mongoose document back.&quot;.</p>
  <p>At one place Model.findOne() is returning a Query object and at a different section its returning a document...Can someone please help explain this.</p>