Search
setPluginData
Set plugin data by key.
const currentDate = new Date().toISOString() await collection.setPluginData("lastSynchronizedAt", currentDate)
Similar to local storage, you can store custom data on the Managed Collection (e.g., the last synchronization date or a connected database ID).
Parameters
key:string– The plugin data key.value:string | null– The value to set, ornullto remove.
Returns
Promise<void>