Stone.js API
    Preparing search index...
    • Middleware to set the current adapter configuration in the blueprint.

      This middleware checks if there is only one adapter in the list, if yes return it, otherwise it looks for the preferred adapter, followed by the adapter with the matching alias, and finally the default adapter. The selected adapter is then set in the blueprint.

      Parameters

      Returns Promise<IBlueprint>

      The updated blueprint or a promise resolving to the updated blueprint.

      await SetCurrentAdapterMiddleware({ modules, blueprint }, next);