File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,10 @@ synced database using Atlas Device SDK. To learn more about object models and
36
36
how to define them, refer to :ref:`sdks-object-models`.
37
37
38
38
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`
42
43
43
44
.. note:: Write to a Synced Database
44
45
@@ -384,6 +385,14 @@ you do so inside a write transaction.
384
385
Create Objects from JSON
385
386
~~~~~~~~~~~~~~~~~~~~~~~~
386
387
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
+
387
396
.. tabs-drivers::
388
397
389
398
.. tab::
Original file line number Diff line number Diff line change @@ -474,7 +474,8 @@ Create Set Properties
474
474
~~~~~~~~~~~~~~~~~~~~~
475
475
476
476
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.
478
479
479
480
The SDK uses the Set container type to define to-many relationships. A
480
481
**to-many** relationship means that an object is related in a specific
Original file line number Diff line number Diff line change @@ -67,3 +67,7 @@ Define a Primary Key
67
67
Placeholder for .NET nullability info, and any other SDKs with similar
68
68
APIs/requirements
69
69
70
+ .. _sdks-model-unstructured-data:
71
+
72
+ Model Unstructured Data
73
+ ~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments