useMongocampSoftDelete
Restores soft-deleted documents of a declared collection with softDelete (server 2.3). See Declared collections.
ts
const { restoreDocument } = useMongocampSoftDelete()
const outcome = await restoreDocument('orders', id) // 'restored' | 'notDeleted'restoreDocument(collection, documentId) sends POST …/documents/{id}/restore (write grant, 15 s timeout). The server's 404 — the document is not deleted (restored by someone else already) or does not exist — resolves with 'notDeleted' instead of rejecting; any other failure rejects.
Listing deleted documents is a read parameter, not part of this composable: withDeleted: true on the document reads and the export (administrate grant).