From 344e87462ecd5b43502f421d7bef4730ba460cc0 Mon Sep 17 00:00:00 2001 From: Alan Escobar Date: Wed, 26 Feb 2020 18:06:30 -0600 Subject: [PATCH] Small change to limit_to_first section In the Limit Queries section (https://firebase.google.com/docs/database/admin/retrieve-data#limit-queries), they are talking about shortest dinosaurs, which is related to height. --- database/src/main/java/com/google/firebase/example/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/src/main/java/com/google/firebase/example/Main.java b/database/src/main/java/com/google/firebase/example/Main.java index c318806..3cd9e35 100644 --- a/database/src/main/java/com/google/firebase/example/Main.java +++ b/database/src/main/java/com/google/firebase/example/Main.java @@ -479,7 +479,7 @@ public void onCancelled(DatabaseError databaseError) { // [END limit_to_last] // [START limit_to_first] - dinosaursRef.orderByChild("weight").limitToFirst(2).addChildEventListener(new ChildEventListener() { + dinosaursRef.orderByChild("height").limitToFirst(2).addChildEventListener(new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String prevChildKey) { System.out.println(dataSnapshot.getKey());