story
Retrieves a Story by its slug using reified type information for the Component type.
Return
A Flow emitting the story, with potential cached and fresh values.
Parameters
The URL path segment identifying the story.
How deeply nested Story relations are resolved. 1 (the default) resolves direct relations; higher values resolve relations of relations; 0 disables relation resolution entirely — model relation fields as String to receive the raw uuids. Relations that cannot be resolved within the level (including circular relations) resolve to null for nullable story fields, and fail with a StoryblokClientException naming the uuid for non-nullable ones.
Type Parameters
The Component type of the story content.
Retrieves a Story by its UUID using reified type information for the Component type.
Return
A Flow emitting the story, with potential cached and fresh values.
Parameters
The unique identifier of the story.
How deeply nested Story relations are resolved. 1 (the default) resolves direct relations; higher values resolve relations of relations; 0 disables relation resolution entirely — model relation fields as String to receive the raw uuids. Relations that cannot be resolved within the level (including circular relations) resolve to null for nullable story fields, and fail with a StoryblokClientException naming the uuid for non-nullable ones.
Type Parameters
The Component type of the story content.