method

TypedCollection.With

func (collection TypedCollection[Document, Create, Update]) With( local *LocalAPI, ) BoundTypedCollection[Document, Create, Update]

With binds a generated collection definition to a running application.

Source core/typed_local.go:30

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

Related types

  • TypedCollection

    An unbound typed collection descriptor.

  • LocalAPI

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

  • BoundTypedCollection

    Typed Create, Import, Find, List, Update, UpdateRevision, and Delete methods.