• Migrate a single Item document to incorporate latest data model changes

    Parameters

    • itemData: object

      The item data to derive an update from

    • actor: Actor = null

      Parent actor document

    • Optionaloptions: {
          _depth: undefined | number;
          item: undefined | Item;
          marker: undefined | boolean;
      } = {}

      Additional options

      • _depth: undefined | number

        Internal only. Recursion depth tracking.

      • item: undefined | Item

        Item document

      • marker: undefined | boolean

        Add migration marker

    Returns object

    • The updateData to apply