type
FindOptions
Projection, population, actor, draft, trash, and locale controls for one read.
Properties
| Property | Type | Description |
|---|---|---|
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. |
ActorCollection | schema.CollectionSlug | Exact auth collection owning Actor; required to disambiguate multiple auth collections. |
System | bool | System skips access rules for trusted server code; see ListOptions.System. |
TrashOnly | bool | Read from trash; valid only for trash-enabled collections. |
Locale | schema.LocaleCode | Selected content locale. |
FallbackLocales | []schema.LocaleCode | Optional replacement fallback chain. |
DisableFallback | bool | Disable locale fallbacks. |
AllLocales | bool | Return all localized values. |
How it works
The root package re-exports this type as ridu.FindOptions. A nil OutputFields resolves every output field; a non-nil empty slice resolves none.