@shisyamo4131/air-firebase-v2-client-adapter 2.0.3 → 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 +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -992,6 +992,8 @@ class ClientAdapter {
|
|
|
992
992
|
queryConstraints.push(...this.createQueries(options));
|
|
993
993
|
} else if (Array.isArray(constraints)) {
|
|
994
994
|
queryConstraints.push(...this.createQueries(constraints));
|
|
995
|
+
} else if (constraints == null || constraints === undefined) {
|
|
996
|
+
return this.docs;
|
|
995
997
|
} else {
|
|
996
998
|
throw new ClientAdapterError(ERRORS.VALIDATION_INVALID_CONSTRAINTS);
|
|
997
999
|
}
|