Skip to content

Commit 19b0f29

Browse files
committed
Apply review feedback
1 parent fb89087 commit 19b0f29

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

source/sdk/crud/create.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ synced database using Atlas Device SDK. To learn more about object models and
3636
how to define them, refer to :ref:`sdks-object-models`.
3737

3838
You can create objects whose object type is managed by the database instance.
39-
For more information, refer to
40-
:ref:`sdks-configure-and-open-database` or
41-
:ref:`sdks-configure-and-open-synced-database`.
39+
For more information, refer to:
40+
41+
- With Sync: :ref:`sdks-configure-and-open-synced-database`
42+
- Without Sync: :ref:`sdks-configure-and-open-database`
4243

4344
.. note:: Write to a Synced Database
4445

@@ -384,6 +385,14 @@ you do so inside a write transaction.
384385
Create Objects from JSON
385386
~~~~~~~~~~~~~~~~~~~~~~~~
386387

388+
Working with JSON returned from an API is a common development use case. Most
389+
of the supported SDK languages do not directly support creating objects from
390+
JSON. However, you may use language or platform-idiomatic APIs to transform
391+
JSON to a structure that matches your object schema, and create a matching
392+
object. Or you may :ref:`model unstructured data <sdks-model-unstructured-data>`
393+
to work with **unstructured data** that is highly variable or whose structure
394+
is unknown at runtime.
395+
387396
.. tabs-drivers::
388397

389398
.. tab::

source/sdk/crud/create/create-property-types.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ Create Set Properties
474474
~~~~~~~~~~~~~~~~~~~~~
475475

476476
Like their native counterparts, the SDK's set data type stores unique values.
477-
These values may be of any supported type except another collection.
477+
These values may be a Realm object or one of the supported data types.
478+
It cannot be another collection, an embedded object, or an asymmetric object.
478479

479480
The SDK uses the Set container type to define to-many relationships. A
480481
**to-many** relationship means that an object is related in a specific

source/sdk/model-data/object-models.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,7 @@ Define a Primary Key
6767
Placeholder for .NET nullability info, and any other SDKs with similar
6868
APIs/requirements
6969

70+
.. _sdks-model-unstructured-data:
71+
72+
Model Unstructured Data
73+
~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)