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 | The cursor for paginated queries. |
Returns:
The query parameters for retrieving posts.
Exceptions
Error if no context is found.