Skip to content

Commit 3d1ac16

Browse files
docs(database): Correct orderByChild() snippet (#9023)
1 parent 4445d9b commit 3d1ac16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/database/lists-of-data.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ top posts sorted by their star count:
185185
final myUserId = FirebaseAuth.instance.currentUser?.uid;
186186
final topUserPostsRef = FirebaseDatabase.instance
187187
.ref("user-posts/$myUserId")
188-
.orderByChild("starCount")
189-
.ref;
188+
.orderByChild("starCount");
190189
```
191190

192191
This defines a query that when combined with a [child listener](#child-events)

0 commit comments

Comments
 (0)