@@ -99,7 +99,7 @@ set a ``schemaVersion`` of the ``Configuration`` object.
99
99
100
100
A realm using :ref:`schema version
101
101
<react-native-schema-version>` ``1`` has a ``Person`` object type with a
102
- ``firstName``, and ``lastName`` property. You decide to add an
102
+ ``firstName`` and ``lastName`` property. You decide to add an
103
103
``age`` property to the ``Person`` class.
104
104
105
105
To migrate the realm to conform to the updated ``Person`` schema, the
@@ -184,11 +184,11 @@ property, and then delete the old property.
184
184
185
185
A realm using :ref:`schema version <react-native-schema-version>` ``1`` has
186
186
a ``Person`` object type. The original schema had a ``firstName`` and ``lastName``
187
- field. You later decides that the ``Person`` class should use a combined
187
+ field. You later decide that the ``Person`` class should use a combined
188
188
``fullName`` field and removes the separate ``firstName`` and ``lastName`` fields.
189
189
190
190
To migrate the realm to conform to the updated ``Person`` schema, you create a :js-sdk:`Configuration <Realm.html#~Configuration>` object
191
- and sets the realm's schema version to ``2``, and defines a migration function that
191
+ and set the realm's schema version to ``2``, and define a migration function that
192
192
sets the value of ``fullName`` based on the existing ``firstName`` and ``lastName``
193
193
properties. Finally, you pass the configuration object to the
194
194
``createRealmContext()`` method.
@@ -239,12 +239,12 @@ callback function of the :js-sdk:`Configuration
239
239
240
240
A realm using :ref:`schema version <react-native-schema-version>` ``1`` has a
241
241
``Task`` object type. The original schema had an ``_id`` with a property type of
242
- ``int``. You later decides that the ``Task`` class's ``_id`` field should
242
+ ``int``. You later decide that the ``Task`` class's ``_id`` field should
243
243
be of type ``ObjectId``, and updates the schema.
244
244
245
245
To migrate the realm to conform to the updated ``Task`` schema, you create a
246
- ``Configuration`` object and sets the realm's schema version to ``2``, and
247
- defines a migration function to convert the integer type to an ``Object ID``
246
+ ``Configuration`` object and set the realm's schema version to ``2``, and
247
+ define a migration function to convert the integer type to an ``Object ID``
248
248
type. Finally, you pass the configuration object to the
249
249
``createRealmContext()`` method.
250
250
0 commit comments