method

BoundTypedCollection.Unpublish

Unpublish removes the published document and keeps its working content.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
idstringThe id value.
optionsTypedMutationOptionsThe options value.

Returns

The declared result.

(Document, error)

Full signature

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

Source core/typed_local.go:144

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.