function
NewTypedCollection
Create a generated-model handle for one collection slug.
Arguments
| Argument | Type | Description |
|---|---|---|
slug | string | The slug value. |
Returns
The declared result.
TypedCollection[Document, Create, Update, Draft]How it works
Generated application contracts use this core API; ordinary hand-written code may prefer LocalAPI with store.Values. Construction stores the supplied slug without validation; ridu.Resolve validates it when resolving the schema.
Full signature
func NewTypedCollection[Document, Create, Update, Draft any](
slug string,
) TypedCollection[Document, Create, Update, Draft]Related types
TypedCollectionAn unbound typed collection descriptor.