Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 6b9c428

Browse files
#319 Unable to query by child that equals to null
1 parent 6649521 commit 6b9c428

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

firebase.android.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,10 +1574,11 @@ firebase.query = function (updateCallback, path, options) {
15741574

15751575
// range
15761576
if (options.range && options.range.type) {
1577-
if (options.range.value === undefined || options.range.value === null) {
1578-
reject("Please set range.value");
1579-
return;
1580-
}
1577+
// https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/319
1578+
// if (options.range.value === undefined || options.range.value === null) {
1579+
// reject("Please set range.value");
1580+
// return;
1581+
// }
15811582
if (options.range.type === firebase.QueryRangeType.START_AT) {
15821583
query = query.startAt(options.range.value);
15831584
} else if (options.range.type === firebase.QueryRangeType.END_AT) {

firebase.ios.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,10 +1613,11 @@ firebase.query = function (updateCallback, path, options) {
16131613

16141614
// range
16151615
if (options.range && options.range.type) {
1616-
if (options.range.value === undefined || options.range.value === null) {
1617-
reject("Please set range.value");
1618-
return;
1619-
}
1616+
// https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/319
1617+
// if (options.range.value === undefined || options.range.value === null) {
1618+
// reject("Please set range.value");
1619+
// return;
1620+
// }
16201621
if (options.range.type === firebase.QueryRangeType.START_AT) {
16211622
query = query.queryStartingAtValue(options.range.value);
16221623
} else if (options.range.type === firebase.QueryRangeType.END_AT) {

0 commit comments

Comments
 (0)