title: MongoDb opening hours Schema and query for open/closed
body: <p>How could I store opening hours withing, say, a Venue document so that I could query whether the Venue is currently open.</p>
  
  <p>Each Venue document would contain just an opening and a closing time for each day of the week (maybe just the ones its open?).</p>
  
  <p>I need the ability only to set and list the hours (trivial I guess) and to query based on the current time whether it is open or closed.</p>
  
  <p>Maybe something along these lines? But not sure on the Schema to be honest nor how to query it to check if its open.</p>
  
  <pre><code>hours: {
      mon: {open: 9:30, close: 18:00 },
      tue: {open: 9:30, close: 17:30 },
      ...
  }
  </code></pre>
  
  <p>Any advice would be much appreciated. Thanks.</p>