method
LocalAPI.Distinct
func (local *LocalAPI) Distinct(
ctx context.Context,
collection string,
options DistinctOptions,
) (store.DistinctPage, error)Return paginated unique values for one direct field after access checks.
Collection access and Where remain atomic in the adapter query; field read access is checked before values are selected.
Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
DistinctOptionsField, filtering, pagination, authorization, draft, trash, and locale controls for one unique-value read.
DistinctPageAscending unique values with ordinary page metadata.