function

NewTypedCollection

Create a generated-model handle for one collection slug.

Arguments

ArgumentTypeDescription
slugstringThe 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]

Source core/typed_local.go:23

Related types