function
HasLiveHead
HasLiveHead reports whether a working document read for an update has a live head. Authoring reads of draft-enabled collections carry the live revision. Without drafts, every write publishes or removes the live head together with the working status, so the document is published exactly when its live head exists.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | schema.Collection | The collection value. |
working | Document | The working value. |
Returns
The declared result.
boolFull signature
func HasLiveHead(
collection schema.Collection,
working Document,
) boolRelated types
CollectionThe resolved contract for a collection.
DocumentA stored document with status and version metadata.