method
BoundTypedCollection.Publish
Publish publishes the document's saved working content, including a draft's pending changes.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
id | string | The id value. |
options | TypedMutationOptions | The options value. |
Returns
The declared result.
(Document, error)Full signature
func (collection BoundTypedCollection[Document, Create, Update, Draft]) Publish(
ctx context.Context,
id string,
options TypedMutationOptions,
) (Document, error)Related types
BoundTypedCollectionTyped collection methods for strict writes, incomplete working drafts, publication, reads, and deletion.
TypedMutationOptionsActor, draft intent, expected revision, locale, and response controls for a generated Go mutation.