type
FindOptions
type FindOptions struct {
// Select is nil for all authored fields. A non-nil empty slice returns only
// document metadata.
Select []query.Path
Populate []query.Population
// OutputFields limits computed and inverse-join resolution independently
// from Select. Nil resolves all; a non-nil empty slice resolves none.
OutputFields []query.Path
// Draft explicitly includes draft documents when true or restricts reads to
// published documents when false. Nil preserves the Local API default.
Draft *bool
Actor *store.Document
ActorCollection schema.CollectionSlug
TrashOnly bool
Locale schema.LocaleCode
FallbackLocales []schema.LocaleCode
DisableFallback bool
AllLocales bool
}Projection, population, authorization, draft, trash, and locale controls for one read.
Select[]query.Path- Restrict returned stored fields.
Populate[]query.Population- Expand configured relationship paths.
OutputFields[]query.Path- Limit computed and inverse-join fields independently of Select.
Draft*bool- Include drafts when true or require published content when false.
Actor*store.Document- Actor used by access rules.
ActorCollectionschema.CollectionSlug- Exact auth collection owning Actor; required to disambiguate multiple auth collections.
TrashOnlybool- Read from trash; valid only for trash-enabled collections.
Localeschema.LocaleCode- Selected content locale.
FallbackLocales[]schema.LocaleCode- Optional replacement fallback chain.
DisableFallbackbool- Disable locale fallbacks.
AllLocalesbool- Return all localized values.
The root package re-exports this type as ridu.FindOptions. A nil OutputFields resolves every output field; a non-nil empty slice resolves none.