ContentWriteinterface
import { ContentWrite } from '@mortar-kit/core'
interface ContentWrite<User>One write, as canWrite sees it.
Properties
user: UserWho is writing: what
auth.requirereturned (undefined withauth: false).action: ContentWriteActionThe function called.
collection?: stringThe collection a document write touches; undefined for asset writes.
id?: stringThe document's id (save, remove, move), the asset's key (removeAsset, updateAsset) or the folder's id (folders; undefined for a new one).
doc?: Doc<Record<string, unknown>>The document being saved (save only).
stored?: Doc<Record<string, unknown>> | nullThe document as stored now (document writes; null when a save creates it).