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 77ea6d8 commit 17dc2afCopy full SHA for 17dc2af
lib/mongoosastic.js
@@ -30,7 +30,7 @@ module.exports = function Mongoosastic(schema, options) {
30
esClient = createEsClient(options);
31
}
32
33
- if (identifyingPaths.length) {
+ if (identifyingPaths && identifyingPaths.length) {
34
identifyingPaths.push('_id');
35
identifyingPaths = _.uniq(identifyingPaths);
36
} else {
0 commit comments