method
TypedCollection.With
With binds a generated collection definition to a running application.
Arguments
| Argument | Type | Description |
|---|---|---|
local | *LocalAPI | The local value. |
Returns
The declared result.
BoundTypedCollection[Document, Create, Update, Draft]Full signature
func (collection TypedCollection[Document, Create, Update, Draft]) With(
local *LocalAPI,
) BoundTypedCollection[Document, Create, Update, Draft]Related types
TypedCollectionAn unbound typed collection descriptor.
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
BoundTypedCollectionTyped collection methods for strict writes, incomplete working drafts, publication, reads, and deletion.