Limit data - Take/Skip prefilter
You can use the
skip prefilters to control the queried data
skip you omit the given count of values.
take you limit the queried data.
first you can query only the first element.
last you can query only the last element.
Lastwill require the collection data to always get queried from the database on every change. Keep that in mind when creating performance critical tasks.
In this example only the first 5 values are queried.
In this example the first 5 values are omitted.
In this example the first and last value is selected.
lastcannot be performed on database side and will be evaluated in your backend application. Be careful when using it.