From 75cc74ef2e1e920924640cf2e6e9c103bd40c4c6 Mon Sep 17 00:00:00 2001 From: Dachary Carey Date: Fri, 3 Nov 2023 09:32:45 -0400 Subject: [PATCH] Add map to relationship and react to changes pages --- source/sdk/cpp/model-data/relationships.txt | 10 +++++----- source/sdk/cpp/react-to-changes.txt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/sdk/cpp/model-data/relationships.txt b/source/sdk/cpp/model-data/relationships.txt index 29a0e6b926..5ef215eaae 100644 --- a/source/sdk/cpp/model-data/relationships.txt +++ b/source/sdk/cpp/model-data/relationships.txt @@ -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: diff --git a/source/sdk/cpp/react-to-changes.txt b/source/sdk/cpp/react-to-changes.txt index 6cf99252c2..cdb036b0bf 100644 --- a/source/sdk/cpp/react-to-changes.txt +++ b/source/sdk/cpp/react-to-changes.txt @@ -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 `, including primitives or other objects. Realm notifies your handler whenever a write transaction