@@ -5942,8 +5942,8 @@ declare namespace firebase.database {
5942
5942
/**
5943
5943
* Creates a `Query` with the specified ending point.
5944
5944
*
5945
- * Using `startAt()`, `endAt ()`, and `equalTo ()` allows you to choose arbitrary
5946
- * starting and ending points for your queries.
5945
+ * Using `startAt()`, `startAfter ()`, `endBefore()`, `endAt ()` and `equalTo()`
5946
+ * allows you to choose arbitrary starting and ending points for your queries.
5947
5947
*
5948
5948
* The ending point is inclusive, so children with exactly the specified value
5949
5949
* will be included in the query. The optional key argument can be used to
@@ -5959,6 +5959,7 @@ declare namespace firebase.database {
5959
5959
* @example
5960
5960
* ```javascript
5961
5961
* // Find all dinosaurs whose names come before Pterodactyl lexicographically.
5962
+ * // Include Pterodactyl in the result.
5962
5963
* var ref = firebase.database().ref("dinosaurs");
5963
5964
* ref.orderByKey().endAt("pterodactyl").on("child_added", function(snapshot) {
5964
5965
* console.log(snapshot.key);
@@ -5977,11 +5978,43 @@ declare namespace firebase.database {
5977
5978
value : number | string | boolean | null ,
5978
5979
key ?: string
5979
5980
) : firebase . database . Query ;
5981
+ /**
5982
+ * Creates a `Query` with the specified ending point (exclusive).
5983
+ *
5984
+ * Using `startAt()`, `startAfter()`, `endBefore()`, `endAt()` and `equalTo()`
5985
+ * allows you to choose arbitrary starting and ending points for your queries.
5986
+ *
5987
+ * The ending point is exclusive. If only a value is provided, children
5988
+ * with a value less than the specified value will be included in the query.
5989
+ * If a key is specified, then children must have a value lesss than or equal
5990
+ * to the specified value and a a key name less than the specified key.
5991
+ *
5992
+ * @example
5993
+ * ```javascript
5994
+ * // Find all dinosaurs whose names come before Pterodactyl lexicographically.
5995
+ * // Do not include Pterodactyl in the result.
5996
+ * var ref = firebase.database().ref("dinosaurs");
5997
+ * ref.orderByKey().endBefore("pterodactyl").on("child_added", function(snapshot) {
5998
+ * console.log(snapshot.key);
5999
+ * });
6000
+ *
6001
+ * @param value The value to end before. The argument
6002
+ * type depends on which `orderBy*()` function was used in this query.
6003
+ * Specify a value that matches the `orderBy*()` type. When used in
6004
+ * combination with `orderByKey()`, the value must be a string.
6005
+ * @param key The child key to end before, among the children with the
6006
+ * previously specified priority. This argument is only allowed if ordering by
6007
+ * child, value, or priority.
6008
+ */
6009
+ endBefore (
6010
+ value : number | string | boolean | null ,
6011
+ key ?: string
6012
+ ) : firebase . database . Query ;
5980
6013
/**
5981
6014
* Creates a `Query` that includes children that match the specified value.
5982
6015
*
5983
- * Using `startAt()`, `endAt ()`, and `equalTo ()` allows us to choose arbitrary
5984
- * starting and ending points for our queries.
6016
+ * Using `startAt()`, `startAfter ()`, `endBefore()`, `endAt ()` and `equalTo()`
6017
+ * allows you to choose arbitrary starting and ending points for your queries.
5985
6018
*
5986
6019
* The optional key argument can be used to further limit the range of the
5987
6020
* query. If it is specified, then children that have exactly the specified
@@ -6426,8 +6459,8 @@ declare namespace firebase.database {
6426
6459
/**
6427
6460
* Creates a `Query` with the specified starting point.
6428
6461
*
6429
- * Using `startAt()`, `endAt ()`, and `equalTo ()` allows you to choose arbitrary
6430
- * starting and ending points for your queries.
6462
+ * Using `startAt()`, `startAfter ()`, `endBefore()`, `endAt ()` and `equalTo()`
6463
+ * allows you to choose arbitrary starting and ending points for your queries.
6431
6464
*
6432
6465
* The starting point is inclusive, so children with exactly the specified value
6433
6466
* will be included in the query. The optional key argument can be used to
@@ -6460,6 +6493,37 @@ declare namespace firebase.database {
6460
6493
value : number | string | boolean | null ,
6461
6494
key ?: string
6462
6495
) : firebase . database . Query ;
6496
+ /**
6497
+ * Creates a `Query` with the specified starting point (exclusive).
6498
+ *
6499
+ * Using `startAt()`, `startAfter()`, `endBefore()`, `endAt()` and `equalTo()`
6500
+ * allows you to choose arbitrary starting and ending points for your queries.
6501
+ *
6502
+ * The starting point is exclusive. If only a value is provided, children
6503
+ * with a value greater than the specified value will be included in the query.
6504
+ * If a key is specified, then children must have a value greater than or equal
6505
+ * to the specified value and a a key name greater than the specified key.
6506
+ *
6507
+ * @example
6508
+ * ```javascript
6509
+ * // Find all dinosaurs that are more than three meters tall.
6510
+ * var ref = firebase.database().ref("dinosaurs");
6511
+ * ref.orderByChild("height").startAfter(3).on("child_added", function(snapshot) {
6512
+ * console.log(snapshot.key)
6513
+ * });
6514
+ * ```
6515
+ *
6516
+ * @param value The value to start after. The argument
6517
+ * type depends on which `orderBy*()` function was used in this query.
6518
+ * Specify a value that matches the `orderBy*()` type. When used in
6519
+ * combination with `orderByKey()`, the value must be a string.
6520
+ * @param key The child key to start after. This argument is only allowed
6521
+ * if ordering by child, value, or priority.
6522
+ */
6523
+ startAfter (
6524
+ value : number | string | boolean | null ,
6525
+ key ?: string
6526
+ ) : firebase . database . Query ;
6463
6527
/**
6464
6528
* Returns a JSON-serializable representation of this object.
6465
6529
*
0 commit comments