Skip to content

Commit 138bd04

Browse files
Add codesample
1 parent a77c64f commit 138bd04

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/firebase/index.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5959,6 +5959,7 @@ declare namespace firebase.database {
59595959
* @example
59605960
* ```javascript
59615961
* // Find all dinosaurs whose names come before Pterodactyl lexicographically.
5962+
* // Include Pterodactyl in the result.
59625963
* var ref = firebase.database().ref("dinosaurs");
59635964
* ref.orderByKey().endAt("pterodactyl").on("child_added", function(snapshot) {
59645965
* console.log(snapshot.key);
@@ -5988,6 +5989,15 @@ declare namespace firebase.database {
59885989
* If a key is specified, then children must have a value lesss than or equal
59895990
* to the specified value and a a key name less than the specified key.
59905991
*
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+
*
59916001
* @param value The value to end before. The argument
59926002
* type depends on which `orderBy*()` function was used in this query.
59936003
* Specify a value that matches the `orderBy*()` type. When used in

0 commit comments

Comments
 (0)