Requires the
entities bundle. A project without the entities bundle returns 403 database/tables-not-available. See Bundles.Overview
usePublishDraft returns a function that publishes a draft entity. After publishing, entity.isDraft becomes false and the entity is visible to other users.
Usage Example
Parameters
Returns
The published entity with
isDraft: false. See Entity data model.
