code: function (database, req, res, internal) {
    for (var collectionName in database.collections) {
      var collection = database.collections[collectionName]
      this[collection.name] = new CollectionApi(database, collection.name, req, res, internal)
    }
  }
docs: An api wrapper for all stores.
  Useful if exposed to REST services, as it gets a merged options object with all query/fiels/options parts.
  Foreach collection in the database, the api creates a {@link CollectionApi}.
  @constructor
  
  @param {Database} database - The database instance
  @param {HttpRequest} req - The http request object
  @param {HttpResponse} res - The http response object
  @param {boolean} internal - Whether the store is in internal mode or not