Collection fields
Collections of entries and assets are exposed through collection fields in the root query object and in one-to-many relationship fields. For example:
Arguments
The following optional arguments are available when querying a collection:
Return value
The value returned from a collection field contains the meta fields skip, limit, total, and the requested items in the items field. The skip and limit fields correspond to their respective input arguments. The total field contains the total number of items in that collection.
Don’t use skip to iterate through an entire collection. Performance degrades as the offset grows, particularly for complex queries and deep link resolution. skip/limit is intended for random access into a bounded result set (for example, “page 3 of 20” in a UI).
To fetch or process every item in a large collection, such as exports, analytics, migrations, or any exhaustive traversal, use cursor pagination instead.