Skip to main content

Module collection

Module collection 

Source
Expand description

Collection envelope, in-memory query execution and RFC 8288 link headers (specification section 6).

Functionsยง

apply_collection_query
Run a parsed collection query against an in-memory list.
collection_envelope
Wrap items in the collection envelope of the specification.
matches_filters
Test whether an item satisfies every filter.
pagination_link_header
Build the RFC 8288 Link header value for a paginated collection.
project_fields
Reduce an item to a sparse fieldset.
sort_items
Sort items by the sort keys of a collection query.