feat: Add support for $eq query constraint in LiveQuery (#8614)

This commit is contained in:
Corey
2023-06-07 22:04:58 -04:00
committed by GitHub
parent b01d4f0abb
commit 656d673cf5
2 changed files with 34 additions and 0 deletions

View File

@@ -247,6 +247,11 @@ function matchesKeyConstraints(object, key, constraints) {
return false;
}
break;
case '$eq':
if (!equalObjects(object[key], compareTo)) {
return false;
}
break;
case '$ne':
if (equalObjects(object[key], compareTo)) {
return false;