all(type) {
    let collection = this.collectionForType(type);

    return this._hydrate(collection, dasherize(type));
  }
Return all models in the database.

    ```js
    let posts = blogPosts.all();
    // [post:1, post:2, ...]
    ```

    @method all
    @param type
    @public