src/models/index.js
/**
 * Import remote models, services, and adapters.
 *
 * @param {*} overrides - override or add services and adapters
 */
Import remote models, services, and adapters.
@param {*} overrides - override or add services and adapters
Import remote models services and adapters . @param { * } overrides - override or add services and adapters
async function initRemotes(remoteEntries, overrides = {}) {
  const services = await importRemoteServices(remoteEntries);
  const adapters = await importRemoteAdapters(remoteEntries);
  await initModels(
    remoteEntries,
    {
      ...services,
      ...overrides,
    },
    {
      ...adapters,
      ...overrides,
    }
  );
}
async function initRemotes ( remoteEntries , overrides = { } ) { const services = await importRemoteServices ( remoteEntries ) ; const adapters = await importRemoteAdapters ( remoteEntries ) ; await initModels ( remoteEntries , { ... services , ... overrides , } , { ... adapters , ... overrides , } ) ; }
Import remote models, services, and adapters.
Import remote models services and adapters .