Requires the
entities bundle. A project without the entities bundle returns 403 database/tables-not-available. See Bundles.Overview
useFetchDrafts returns a function that retrieves the authenticated user’s unpublished draft entities in a paginated response. A draft marked removed (moderationStatus: "removed") is listed too, but it can’t be published or edited, only deleted.
Requires an authenticated user. Only the user’s own drafts are returned.
Usage Example
Parameters
Results per page: a whole number from
1 to 100. Defaults to 10. A larger value is rejected with 400 entity/invalid-query, never lowered to 100.Only drafts from this source, or
"none" for drafts with no source. Left out: any source.Only drafts in this space, or
"none" for drafts in no space. Left out: any space, or none.Populate related fields. Accepted values:
"user", "space", "files", "grants" (typed as DraftIncludeParam). Any other value is rejected by the server with 400 entity/invalid-query.
