function
NewTypedCollection
func NewTypedCollection[Document, Create, Update any](
slug string,
) TypedCollection[Document, Create, Update]Create a generated-model handle for one collection slug.
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.
Related types
TypedCollectionAn unbound typed collection descriptor.