semanticdb-core 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -252,6 +252,18 @@ const getFlattenQuery = (query) => {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
+
else if (k in flattenQuery) {
|
|
256
|
+
// 可以忽略$exists: true的
|
|
257
|
+
if (typeof v === 'object' && v && '$exists' in v && v.$exists === true) {
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
flattenQuery[k] = {
|
|
261
|
+
$and: [
|
|
262
|
+
flattenQuery[k],
|
|
263
|
+
v
|
|
264
|
+
]
|
|
265
|
+
};
|
|
266
|
+
}
|
|
255
267
|
else {
|
|
256
268
|
flattenQuery[k] = v;
|
|
257
269
|
}
|