function

NewTypedCollection

func NewTypedCollection[Document, Create, Update any]( slug string, ) TypedCollection[Document, Create, Update]

Create a generated-model handle for one collection slug.

Source core/typed_local.go:22

@param slug
The slug value.
@returns
The declared result.

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