Simply typing/pasting the following query filter into the Schema tab causes the entire tab to go blank and javascript errors in the console.
{tripduration: {$eq: 20000,$lt: 40000}}
The attached screenshot shows the behavior on the citibike.trips collection in the M001 student cluster where the "tripduration" is one of the fields.
This appears to be the new content in the DevTools console after entering the $eq operator:
/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:661 TypeError: Expected a function
at createWrap (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/lodash.curryright/index.js:712)
at curryRight (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/lodash.curryright/index.js:957)
at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/lib/inValueRange.js:65
at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/node_modules/lodash.forown/index.js:161
at baseForOwn (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/node_modules/lodash.forown/index.js:122)
at forOwn (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/node_modules/lodash.forown/index.js:447)
at inValueRange (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/lib/inValueRange.js:63)
at SVGRectElement.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/src/internal-plugins/schema/lib/d3/many.js:222)
at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/d3/d3.js:962
at d3_selection_each (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/d3/d3.js:968)
object.(anonymous function) @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:661
Kg @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:179
Vg.c.callback @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:190
vf @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:128
uf @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:128
Sh @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:229
Ph @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:220
Qh @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:219
sh @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:216
Uf @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:214
enqueueSetState @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:134
G.setState @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react/cjs/react.production.min.js:13
onQueryChanged @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/src/internal-plugins/schema/lib/component/minichart.jsx:37
eventHandler @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/lib/PublisherMethods.js:44
emit @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/node_modules/eventemitter3/index.js:137
trigger @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/lib/PublisherMethods.js:63
setState @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-state-mixin/lib/storeMixin.js:48
_stoppedTyping @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-query-bar/lib/index.js:10
_super.bugsnag @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:279
(anonymous) @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:1252
setTimeout (async)
(anonymous) @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:1251
typeQueryString @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-query-bar/lib/index.js:10
eventHandler @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/lib/PublisherMethods.js:44
emit @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/node_modules/eventemitter3/index.js:116
trigger @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/lib/PublisherMethods.js:63
(anonymous) @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/lib/PublisherMethods.js:74
_super.bugsnag @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:279
(anonymous) @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:1252
setTimeout (async)
(anonymous) @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:1251
exports.nextTick @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/lib/utils.js:60
triggerAsync @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/lib/PublisherMethods.js:73
functor @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/reflux-core/lib/createAction.js:56
value @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-query-bar/lib/index.js:399
n.onChangeQuery @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-query-bar/lib/index.js:399
onChange @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-ace/lib/ace.js:262
EventEmitter._signal @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:3865
onDocumentChange @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:13292
EventEmitter._signal @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:3865
onChange @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:9805
EventEmitter._signal @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:3865
applyDelta @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:7955
insertMergedLines @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:7853
insert @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:7781
insert @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:10322
insert @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:13532
exec @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:12666
(anonymous) @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:11979
EventEmitter._emit.EventEmitter._dispatchEvent @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:3855
exec @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:12010
$callKeyboardHandlers @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:4569
onTextInput @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:4584
onTextInput @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:13558
sendText @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:2545
onInput @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/brace/index.js:2554
_super.bugsnag @ /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/bugsnag-js/src/bugsnag.js:279
/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:219 Uncaught TypeError: Expected a function
at createWrap (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/lodash.curryright/index.js:712)
at curryRight (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/lodash.curryright/index.js:957)
at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/lib/inValueRange.js:65
at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/node_modules/lodash.forown/index.js:161
at baseForOwn (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/node_modules/lodash.forown/index.js:122)
at forOwn (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/node_modules/lodash.forown/index.js:447)
at inValueRange (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-query-util/lib/inValueRange.js:63)
at SVGRectElement.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/src/internal-plugins/schema/lib/d3/many.js:222)
at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/d3/d3.js:962
at d3_selection_each (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/d3/d3.js:968)
- is related to
-
COMPASS-3421 $exists query filter in Schema blanks entire tab with javascript errors
- Closed
- related to
-
COMPASS-3652 $type in query filter on Schema tab blanks entire tab with javascript errors
- Closed