Anatomy

The structure of a Lore application

config/models.js

This file is connected to the lore-hook-models hook and allows you to map models to connections.

You can learn more about the configuration options here.

Default Config

The default config is shown below.

/**
 * Configuration file for models
 *
 * This file is where you define overrides for the default model behaviors.
 * Settings here apply to all models, and some are inherited by collections.
 */

export default {

  /**
   * The default API connection that models should use if they have no explicit mapping.
   */

  // defaultConnection: 'default'

  /**
   * If your application interacts with multiple APIs, create a connection for each
   * API and then define which models are associated with each connection here.
   *
   * Here is an example for an application with a versioned API (v1 and v2):
   *
   * {
   *   v1: [
   *     'currentUser',
   *     'author'
   *   ],
   *   v2: [
   *     'book',
   *     'publisher'
   *   ]
   * }
   */

  // connectionModelMap: {
  //   default: []
  // }

}