• Test if provided document has been migrated to current version.

    Parameters

    • doc: Document<any, null, Metadata<any>>

      Any document to test

    Returns boolean

    • Migration matches current version
    • This only tests migration flag. If the document has been updated with outdated data since, this will return false positive.