Skip to content

Commit a143735

Browse files
author
Mohammad Hunan Chughtai
committed
Grammar update
1 parent d2f1d0f commit a143735

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/sdk/react-native/realm-database/change-an-object-model.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ set a ``schemaVersion`` of the ``Configuration`` object.
9999

100100
A realm using :ref:`schema version
101101
<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
103103
``age`` property to the ``Person`` class.
104104

105105
To migrate the realm to conform to the updated ``Person`` schema, the
@@ -184,11 +184,11 @@ property, and then delete the old property.
184184

185185
A realm using :ref:`schema version <react-native-schema-version>` ``1`` has
186186
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
188188
``fullName`` field and removes the separate ``firstName`` and ``lastName`` fields.
189189

190190
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
192192
sets the value of ``fullName`` based on the existing ``firstName`` and ``lastName``
193193
properties. Finally, you pass the configuration object to the
194194
``createRealmContext()`` method.
@@ -239,12 +239,12 @@ callback function of the :js-sdk:`Configuration
239239

240240
A realm using :ref:`schema version <react-native-schema-version>` ``1`` has a
241241
``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
243243
be of type ``ObjectId``, and updates the schema.
244244

245245
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``
248248
type. Finally, you pass the configuration object to the
249249
``createRealmContext()`` method.
250250

0 commit comments

Comments
 (0)