We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20467be commit 79848e4Copy full SHA for 79848e4
lib/connections/register.js
@@ -26,6 +26,12 @@ module.exports.configure = function ( connections ) {
26
if(!connection.identity) return cb(Errors.IdentityMissing);
27
if(connections[connection.identity]) return cb(Errors.IdentityDuplicate);
28
29
+ // Always ensure the schema key is set to something. This should be remapped in the
30
+ // .describe() method later on.
31
+ Object.keys(collections).forEach(function(coll) {
32
+ collections[coll].schema = collections[coll].definition;
33
+ });
34
+
35
// Store the connection
36
connections[connection.identity] = {
37
config: connection,
0 commit comments