title: Mongoose toObject: { virtuals: true }
body: <p>I'm trying to learn MongoDB/Node and I noticed that in a schema I often see something like this:</p>
  
  <pre><code>toObject: { virtuals: true }
  toJSON: { virtuals: true }
  </code></pre>
  
  <p>What do these two lines mean?</p>