method

TypedCollection.With

With binds a generated collection definition to a running application.

Arguments

ArgumentTypeDescription
local*LocalAPIThe 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]

Source core/typed_local.go:33

Related types

  • TypedCollection

    An unbound typed collection descriptor.

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • BoundTypedCollection

    Typed collection methods for strict writes, incomplete working drafts, publication, reads, and deletion.