Anatomy

The structure of a Lore application

/config/collections.js

This is the configuration file for lore-hook-collections and is where you define overrides for the default collection behaviors.

You can learn more about the configuration options here.

While this file can influence the behavior of collections, there is currently no clear reason why you would ever need to use it.

If you need to define collection specific behavior (such as parsing server responses or defining headers to add to requests) you should do that in /config/connections.js.

If you have multiple connections, and need to define which collections use each connection, you should do that in /config/models.js as this file inherits that behavior.

Default Config

The default config is shown below.

/**
 * Configuration file for collections
 *
 * This file is where you define overrides for the default collection behaviors.
 */

export default {

  /**
   * While this file can influence the behavior of collections, there is currently
   * no clear reason why you would ever need to use it.
   *
   * If you need to define collection specific behavior (such as parsing server responses
   * or defining headers to add to requests) you should do that in 'config/connections.js'.
   *
   * If you have multiple connections, and need to define which collections use each
   * connection, you should do that in 'config/models.js' as this file inherits that
   * behavior.
   *
   */

}