title: Mongoose variable key name
body: <p>I have a <code>mongo</code> object and wish to access it via <code>mongoose</code> for my web app. The schema I've defined has an <code>Object</code> storing user ids and a 3-level value (yes, maybe or no).</p>
  
  <p>e.g.</p>
  
  <pre><code>"user_info": {
      "&lt;id_value_1&gt;": "y",
      "&lt;id_value_2&gt;": "n"
  }
  </code></pre>
  
  <p>The <code>id_value_*</code>s above are the users session ids so a long string of random characters. How can I create a <code>mongoose</code> <code>Schema</code> for this?</p>
  
  <ol>
  <li><p>Would <code>user_info: {String, String}</code> work?</p></li>
  <li><p>I could restructure it so that the <code>user_info</code> is an array of objects <code>{ "sessionid": "&lt;value&gt;", "value: "y"}</code>, which would be ok, is this the best option?</p></li>
  </ol>