From 489d2e33fd4c46b99d12bb726df3c3d715645fbd Mon Sep 17 00:00:00 2001 From: Jim LAURIE Date: Mon, 10 Feb 2020 15:09:59 +0100 Subject: [PATCH] feat: expose mongoose connections Signed-off-by: Jim LAURIE --- packages/strapi-connector-mongoose/lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/strapi-connector-mongoose/lib/index.js b/packages/strapi-connector-mongoose/lib/index.js index 8b800735de..0c04dffeab 100644 --- a/packages/strapi-connector-mongoose/lib/index.js +++ b/packages/strapi-connector-mongoose/lib/index.js @@ -125,6 +125,8 @@ module.exports = function(strapi) { connection, }; + _.set(strapi, `connections.${connectionName}`, instance); + return Promise.all([ mountComponents(connectionName, ctx), mountApis(connectionName, ctx),