StoriesQuery
Builder for the query parameters of the retrieve multiple stories endpoint.
Every documented parameter has a dedicated, type-safe entry point. Fields of your own content types are addressed by a property reference of T, Story attributes are addressed by a property reference of Story:
client.stories<Article> {
sortBy(Article::headline) // sort_by=content.headline:asc
sortByDescending(Story<*>::publishedAt) // sort_by=published_at:desc
filter { Article::price greaterThan 100.0 } // filter_query[price][gt_float]=100.0
}Type Parameters
The Component type the query is built for, whose properties the property-reference overloads accept.
Properties
Retrieve the stories matching these full slugs; supports * wildcards. Maps to by_slugs.
Retrieve the stories with these uuids, preserving the order given here. Maps to by_uuids_ordered.
Omit these content fields from the response to reduce its size. Maps to excluding_fields.
Exclude the stories with these ids. Maps to excluding_ids.
Exclude the stories matching these full slugs; supports * wildcards. Maps to excluding_slugs.
Retrieve stories first published after this instant. Maps to first_published_at_gt.
Retrieve stories first published before this instant. Maps to first_published_at_lt.
Retrieve the story as it appears in the release with this id. Maps to from_release.
Retrieve only start pages (true) or only non-start pages (false). Maps to is_startpage.
Retrieve stories published after this instant. Maps to published_at_gt.
Retrieve stories published at or after this instant. Maps to published_at_gte.
Retrieve stories published before this instant. Maps to published_at_lt.
Retrieve stories published at or before this instant. Maps to published_at_lte.
Search across all content fields, e.g. spaceship. Maps to search_term.
Filter by the full slug prefix, e.g. blog/posts, to retrieve the stories of a specific folder. Maps to the starts_with parameter.
Retrieve stories updated after this instant. Maps to updated_at_gt.
Retrieve stories updated before this instant. Maps to updated_at_lt.
Functions
Configure advanced filter queries targeting the fields of your content types, e.g.:
Sort the stories by the content field field ascending, e.g. Article::price. Call repeatedly, or alongside sortByDescending, to sort by several fields; they are applied in call order. Maps to sort_by, prefixed with content. as the API requires for content fields.