method

BoundTypedCollection.Create

Public method BoundTypedCollection.Create from github.com/riducms/ridu/core.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
inputCreateThe input value.
optionsTypedMutationOptionsThe options value.

Returns

The declared result.

(Document, error)

Full signature

func (collection BoundTypedCollection[Document, Create, Update, Draft]) Create( ctx context.Context, input Create, options TypedMutationOptions, ) (Document, error)

Source core/typed_local.go:53

Related types

  • BoundTypedCollection

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

  • TypedMutationOptions

    Actor, draft intent, expected revision, locale, and response controls for a generated Go mutation.