title: How to loop over rows after .fetchAll Bookshelf js + knex js?
body: <p>I have a MySQL Database which I need to query from node.js </p>
  
  <p>I am using bookshelf and knex for this.</p>
  
  <p>I want to get the contents of a table - I have defined a table in my model.js file. I am attempting the query like this:</p>
  
  <pre><code>//select * from completedSentences;
  Model.CompletedSentences.fetchAll().then(function (resData) {
          console.log(resData)
      })
  </code></pre>
  
  <p>I would like to know how to loop over resData because it should be multiple rows.</p>
  
  <p>The output of the console looks like this: I dont see a list of rows I can loop over.. What am i missing?</p>
  
  <pre><code>CollectionBase {
    model:
     { [Function]
       NotFoundError: [Function: ErrorCtor],
       NoRowsUpdatedError: [Function: ErrorCtor],
       NoRowsDeletedError: [Function: ErrorCtor] },
    length: 1,
    models:
     [ ModelBase {
         attributes: [Object],
         _previousAttributes: [Object],
         changed: {},
         relations: {},
         cid: 'c4',
         id: 1 } ],
    _byId:
     { '1':
        ModelBase {
          attributes: [Object],
          _previousAttributes: [Object],
          changed: {},
          relations: {},
          cid: 'c4',
          id: 1 },
       c4:
        ModelBase {
          attributes: [Object],
          _previousAttributes: [Object],
          changed: {},
          relations: {},
          cid: 'c4',
          id: 1 } },
    _knex: null,
    _events: {},
    _eventsCount: 0 }
  </code></pre>