There is an error in the detection process of Anomaly or Pattern Detector with MongoDB:
Error: $or must be an array
at Object.<anonymous> (/mnt/c/Users/VargB/git/hastic-server/server/dist/server-dev.js:528:19)
at Generator.next (<anonymous>)
at fulfilled (/mnt/c/Users/VargB/git/hastic-server/server/dist/server-dev.js:232:32)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Reason
MongoDB and nedb have different $or field syntax in find query.
Changes
change findMany query syntax from $or: { labeled: true, deleted: true} to$or [{labeled: true}, {deleted: true}] for MongoDB
Problem
There is an error in the detection process of Anomaly or Pattern Detector with MongoDB:
Reason
MongoDB and nedb have different
$or
field syntax infind
query.Changes
findMany
query syntax from$or: { labeled: true, deleted: true}
to$or [{labeled: true}, {deleted: true}]
for MongoDB