Skip to content

Commit

Permalink
Add map to relationship and react to changes pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dacharyc committed Nov 3, 2023
1 parent 812ac61 commit 75cc74e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions source/sdk/cpp/model-data/relationships.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ A **to-many** relationship means that an object relates to more than one
other object. In Realm, a to-many relationship is a list of
references to other objects. For example, a person might have many dogs.

You can represents a to-many relationship between two Realm
types as a list or a set. Lists and sets are mutable: within a write
transaction, you can add and remove elements to and from a list or set.
Lists are not associated with a query and are declared as a property of
the object model.
You can represent a to-many relationship between two Realm
types as a list, map, or a set. Lists, maps, and sets are mutable: within
a write transaction, you can add and remove elements to and from these
collection types. Lists, maps, and sets are not associated with a query
and are declared as a property of the object model.

.. _cpp-inverse-relationship:

Expand Down
2 changes: 1 addition & 1 deletion source/sdk/cpp/react-to-changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Register a Collection Change Listener
-------------------------------------

You can register a notification handler on a collection. A collection is
a list or set property that can contain any :ref:`supported data type
a list, map, or set property that can contain any :ref:`supported data type
<cpp-supported-property-types>`, including primitives or other objects.

Realm notifies your handler whenever a write transaction
Expand Down

0 comments on commit 75cc74e

Please sign in to comment.