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

ArgumentTypeDescription
collectionschema.CollectionThe collection value.
workingDocumentThe working value.

Returns

The declared result.

bool

Full signature

Related types

  • Collection

    The resolved contract for a collection.

  • Document

    A stored document with status and version metadata.