title: TypeError: Cannot read property 'queryView' of undefined
body: <p>I am trying to filter items from the CBdatabase check my when I call this function I am getting error as cannot read property 'queryView' of undefined</p>
  
  <pre><code>refresh() {
          this.couchbase.getDatabase().queryView("_design/Tickets1", "items", {}).then((result: any) =&gt; {
              this.items = [];
              for(var i = 0; i &lt; result.rows.length; i++) {
                  this.items.push(result.rows[i].value);
              }
          }, error =&gt; {
              console.error("ERROR: " + JSON.stringify(error));
          });
      }
  </code></pre>
  
  <p>I am very new to couchDB any help</p>