title: CouchDB - Accessing querystring parameters in views
body: <p>Is it possible access a requests querystring parameters in a view?</p>
  
  <p>Consider this request... <code>GET/database/_designs/foo/?bar=1</code></p>
  
  <p>And this map...</p>
  
  <pre><code>views {
      foo: {
          map: function (document)
          {
              // I want to access querystring parameter "bar" here! But how?
  
  
              // I'd like to be able to do something along the lines of...
  
              if (bar &gt; 0) emit(null, document);
          }
      }
  }
  </code></pre>