Skip to content

Commit c83bd46

Browse files
ggranumdavideast
authored andcommitted
chore(docs): Update 2-retrieving-data-as-objects.md (#503)
Querying of ObjectObservables is useful. At least the docs should reflect the actual API :~)
1 parent 1963d2d commit c83bd46

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/2-retrieving-data-as-objects.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ this.item.subscribe(snapshot => {
179179
```
180180

181181
## Querying?
182-
The `FirebaseObjectObservable` synchronizes objects from the realtime database. There is no querying available for objects because
183-
objects are simply JSON, and JSON order is specified by the browser.
182+
183+
Because `FirebaseObjectObservable` synchronizes objects from the realtime database, sorting will have no effect for queries that are not also limited by a range. For example, when paginating you would provide a query with a sort and filter. Both the sort operation and the filter operation affect which subset of the data is returned by the query; however, because the resulting object is simply json, the sort order will not be preseved locally. Hence, for operations that require sorting, you are probably looking for a [list](3-retrieving-data-as-lists.md)
184+
185+
For filtering response data see [](4-querying-lists.md) and repeat 'Object' to yourself everytime you read the word 'List'.
184186

185187
###[Next Step: Retrieving data as lists](3-retrieving-data-as-lists.md)

0 commit comments

Comments
 (0)