getPostsFeed
query should be called. Results will be returned with pagination,
but without possibility to change the order. Query sorting key can be changed.
Default sorting: pinned posts first, then descending by the creation time.
The following arguments can be used in the query:
Argument | Type | Description | Default |
---|---|---|---|
after | Cursor | Returns results that come after the specified cursor. Should be used together with first parameter. Cannot be used if before is set. | — |
before | Cursor | Returns results that come before the specified cursor. Should be used together with last parameter. Cannot be used if after is set. | — |
first | Integer | Returns up to the first N elements from the list. Required if after parameter is set. Cannot be used together with last . | — |
last | Integer | Returns up to the first N elements from the list. Required if before parameter is set. Cannot be used together with first . | — |
sortKey | PostSortKey | Sort the underlying list by the given key. Available options: PINNED and CREATED . | PINNED |
Post
objects. Detailed description and the full list of available properties can be found here.