stories

inline fun <T : Component> StoryblokClient.stories(config: PagingConfig = PagingConfig(pageSize = 25), resolveLevel: Int = 1, noinline query: StoriesQuery<T>.() -> Unit = {}): Pager<Int, Story<T>>(source)

Retrieves multiple stories as a PagingData stream, using reified type information for the Component type.

Return

A Pager whose flow emits the stories, with potential cached and fresh values.

Parameters

config

The Paging configuration; its pageSize maps to the API's per_page.

resolveLevel

How deeply nested Story relations are resolved, see story.

query

Configures the query parameters via the StoriesQuery DSL.

Type Parameters

T

The Component type of the stories' content.