title: How do you refresh the data in a mongoose document that has already been loaded?
body: <p>To be clear this question relates to loading data from the database, not updating documents in the database.</p>
  
  <p>With the following schema:</p>
  
  <pre><code>new mongoose.Schema
    name: String
    code:
      type: String
      index:
        unique: true
    _contacts: [
      type: mongoose.Schema.Types.ObjectId
      ref: 'Person'
    ]
  </code></pre>
  
  <p>I've created my document like so:</p>
  
  <pre><code>client = new Client code:'test',name:'test competition',contacts:[]
  client.save()
  </code></pre>
  
  <p>Elsewhere in the application or via an API call, somewhere that it can't easily refer to the version cached above:</p>
  
  <pre><code>Client.findOne(code:'test').exec (err,client) -&gt;
    return if err or not client
    client._contacts.push person.id # person has come from somewhere
    client.save (err) -&gt;
      return err if err
  </code></pre>
  
  <p>If we return to our original <em>client</em> object what I would like to know is if there's a way to refresh that object either for the whole document or just a particular path. For instance;</p>
  
  <pre><code>client.refresh '_contacts', (err) -&gt;
    return err if err
  </code></pre>
  
  <p>Or would it be better practice to maintain only one object that is referred to globally?</p>