Skip to content

Packages  ›  trotsky  ›  StepActorPosts  ›  queryParams

StepActorPosts.queryParams() method

Generates query parameters for retrieving posts, including the optional cursor.

Signature:

typescript
queryParams(cursor: StepActorPostsQueryParamsCursor): StepActorPostsQueryParams;

Parameters

Parameter

Type

Description

cursor

StepActorPostsQueryParamsCursor

The cursor for paginated queries.

Returns:

StepActorPostsQueryParams

The query parameters for retrieving posts.

Exceptions

Error if no context is found.