@shisyamo4131/air-firebase-v2-client-adapter 2.0.2 → 2.0.4
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.
- package/index.js +3 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -987,10 +987,13 @@ class ClientAdapter {
|
|
|
987
987
|
const queryConstraints = [];
|
|
988
988
|
|
|
989
989
|
if (typeof constraints === "string") {
|
|
990
|
+
if (!constraints) return this.docs; // 空文字列の場合は何もせず返す
|
|
990
991
|
queryConstraints.push(...this.createTokenMapQueries(constraints));
|
|
991
992
|
queryConstraints.push(...this.createQueries(options));
|
|
992
993
|
} else if (Array.isArray(constraints)) {
|
|
993
994
|
queryConstraints.push(...this.createQueries(constraints));
|
|
995
|
+
} else if (constraints == null || constraints === undefined) {
|
|
996
|
+
return this.docs;
|
|
994
997
|
} else {
|
|
995
998
|
throw new ClientAdapterError(ERRORS.VALIDATION_INVALID_CONSTRAINTS);
|
|
996
999
|
}
|