type

ListOptions

Filter, page, sort, projection, population, actor, draft, trash, and locale list controls.

Properties

PropertyTypeDescription
Wherequery.ExpressionFilter documents atomically with the access predicate.
PageintOne-based page; zero selects the first.
LimitintMaximum documents returned per page.
SkipTotalboolSkipTotal skips counting every match, like REST pagination=false. The page then has a nil Total and an exact HasNextPage.
Sort[]query.SortStable authored-field ordering.
Select[]query.PathRestrict returned stored fields.
Populate[]query.PopulationExpand configured relationship paths.
OutputFields[]query.PathLimit computed and inverse-join fields independently of Select.
Draft*boolInclude drafts when true or require published content when false.
Actor*store.DocumentActor used by access rules.
ActorCollectionschema.CollectionSlugExact auth collection owning Actor.
SystemboolSystem runs the call as trusted server code: collection, field, draft and reference access rules are skipped. Validation, hooks, versions and reference integrity still apply, and Actor, when set, still reaches hooks. Only Go code can set it; REST and GraphQL never do.
TrashOnlyboolList trashed documents only.
Localeschema.LocaleCodeSelected content locale.
FallbackLocales[]schema.LocaleCodeOptional replacement fallback chain.
DisableFallbackboolDisable locale fallbacks.
AllLocalesboolReturn all localized values.

How it works

The root package re-exports this type as ridu.ListOptions. TrashOnly is valid only for trash-enabled collections.

Full signature