@@ -102,10 +102,9 @@ set a ``schemaVersion`` of the ``Configuration`` object.
102
102
``firstName`` and ``lastName`` property. You decide to add an
103
103
``age`` property to the ``Person`` class.
104
104
105
- To migrate the realm to conform to the updated ``Person`` schema, the
106
- developer sets the realm's schema version in the ``Configuration`` to ``2``.
107
- Finally, you pass the configuration object to the
108
- ``createRealmContext()`` method.
105
+ To migrate the realm to conform to the updated ``Person`` schema, you set the
106
+ realm's schema version in the ``Configuration`` to ``2``. Finally, pass
107
+ the configuration object to the ``createRealmContext()`` method.
109
108
110
109
.. tabs-realm-languages::
111
110
@@ -139,10 +138,9 @@ existing objects.
139
138
``Person`` object type with a ``lastName`` property. You decide to
140
139
remove the property from the schema.
141
140
142
- To migrate the realm to conform to the updated ``Person`` schema, the
143
- developer sets the realm's schema version to 2 in the ``Configuration``
144
- object. Finally, you pass the configuration object to the
145
- ``createRealmContext()`` method.
141
+ To migrate the realm to conform to the updated ``Person`` schema, set the
142
+ realm's schema version to 2 in the ``Configuration`` object. Finally, pass
143
+ the configuration object to the ``createRealmContext()`` method.
146
144
147
145
148
146
.. tabs-realm-languages::
@@ -187,10 +185,10 @@ property, and then delete the old property.
187
185
field. You later decide that the ``Person`` class should use a combined
188
186
``fullName`` field and removes the separate ``firstName`` and ``lastName`` fields.
189
187
190
- To migrate the realm to conform to the updated ``Person`` schema, you create a :js-sdk:`Configuration <Realm.html#~Configuration>` object
188
+ To migrate the realm to conform to the updated ``Person`` schema, create a :js-sdk:`Configuration <Realm.html#~Configuration>` object
191
189
and set the realm's schema version to ``2``, and define a migration function that
192
190
sets the value of ``fullName`` based on the existing ``firstName`` and ``lastName``
193
- properties. Finally, you pass the configuration object to the
191
+ properties. Finally, pass the configuration object to the
194
192
``createRealmContext()`` method.
195
193
196
194
.. tabs-realm-languages::
@@ -242,10 +240,10 @@ callback function of the :js-sdk:`Configuration
242
240
``int``. You later decide that the ``Task`` class's ``_id`` field should
243
241
be of type ``ObjectId``, and updates the schema.
244
242
245
- To migrate the realm to conform to the updated ``Task`` schema, you create a
243
+ To migrate the realm to conform to the updated ``Task`` schema, create a
246
244
``Configuration`` object and set the realm's schema version to ``2``, and
247
245
define a migration function to convert the integer type to an ``Object ID``
248
- type. Finally, you pass the configuration object to the
246
+ type. Finally, pass the configuration object to the
249
247
``createRealmContext()`` method.
250
248
251
249
.. tabs-realm-languages::
0 commit comments