type
BoundTypedAllLocalesCollection
Typed Find and List reads with population, projection and all translations.
Methods
| Property | Type | Description |
|---|---|---|
Find(ctx, id, options) | (Document, | Read one document with typed population and projection. |
List(ctx, options) | (TypedPage[Document], | Filter, paginate and populate typed documents through the operation engine; decoding errors return no partial page. |
How it works
Use the ordinary generated collection/global handle for single-locale reads and writes. Localized projects additionally generate this read binding for locale-map output. Both use the operation engine for access, redaction, population and projection.
Full signature
type BoundTypedAllLocalesCollection[Document any] struct {
definition TypedAllLocalesCollection[Document]
local *LocalAPI
}Methods
BoundTypedAllLocalesCollection.Find()Find reads with the locale shape chosen by the generated definition.
BoundTypedAllLocalesCollection.List()List filters and populates documents through the operation engine, using the same response shape as Find. A failed document decode returns no partial page.