method
LocalAPI.List
List authorized documents with filtering, pagination, projection, sorting, and population.
Example
page, err := app.Local().List(ctx, "posts", ridu.ListOptions{
Where: query.Equal("status", "published"),
Page: 1,
Limit: 20,
Actor: actor,
})Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | Request context. |
collection | string | Authored collection slug. |
options | ListOptions | Query and response options. |
Returns
One authorized page and total count, or an operation error.
(store.Page, error)Full signature
func (local *LocalAPI) List(
ctx context.Context,
collection string,
options ListOptions,
) (store.Page, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
ListOptionsFiltering, pagination, projection, population, authorization, and locale controls for a list read.
PageA paginated result and total count.