type

ListWindowOptions

A count-free bounded unique-index range for background work.

Properties

PropertyTypeDescription
Indexquery.PathDirect unique, indexed, non-localized text field used for ordering.
LowerBoundstringInclusive non-empty lower index bound.
UpperBoundstringExclusive non-empty upper index bound.
LimitintMaximum documents returned.
Select[]query.PathRestrict returned stored fields.
Actor*store.DocumentActor used by access rules.
ActorCollectionschema.CollectionSlugExact auth collection owning Actor.
SystemboolSystem skips access rules for trusted server code; see ListOptions.System.
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.ListWindowOptions. The store transaction must implement the optional store.WindowTransaction capability.

Full signature

type ListWindowOptions struct { Index query.Path LowerBound string UpperBound string Limit int Select []query.Path Actor *store.Document ActorCollection schema.CollectionSlug // System skips access rules for trusted server code; see ListOptions.System. System bool Locale schema.LocaleCode FallbackLocales []schema.LocaleCode DisableFallback bool AllLocales bool }

Source core/local.go:100