Function: migrateDoc()
ts
function migrateDoc(doc): DocJSON;Bring a stored document up to the current SCHEMA_VERSION. Documents without a version are treated as version 1. Throws for documents written by a newer version of the library, which this release cannot read safely.
Parameters
| Parameter | Type |
|---|---|
doc | DocJSON |