+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- +…limitToFirst: …+…Sets the maximum number of items to return from the beginning of the ordered list of results… +
- +…limitToLast:…+…Sets the maximum number of items to return from the end of the ordered list of results…+
- +…startAt:…+…Return items greater than or equal to the specified key or value, depending on the order-by method chosen…+
- +…startAfter:…+…Return items greater than the specified key or value depending on the order-by method chosen…+
- +…endAt:… +…Return items less than or equal to the specified key or value, depending on the order-by method chosen…+
- +…endBefore:…+…Return items less than the specified key or value depending on the order-by method chosen…+
- +…equalTo:…+…Return items equal to the specified key or value, depending on the order-by method chosen…+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Limit the number of results
You can use the limitToFirst or limitToLast filter to set a maximum number of children to be synced for a given event.
Range Queries:
Using startAt, endAt, and equalTo allows us to choose arbitrary starting and ending points for our queries.