Skip to content

Commit e2b4467

Browse files
authored
Merge branch 'feature-consolidated-sdk-docs' into DOCSP-39514
2 parents f8f71d7 + 6ffd8b5 commit e2b4467

File tree

161 files changed

+4526
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+4526
-94
lines changed

source/help.txt

Lines changed: 51 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@
44
Get Help
55
========
66

7+
.. meta::
8+
:description: Get help for Atlas Device SDK through community forums, sharing feedback, or professional support.
9+
:keywords: Realm, C++ SDK, Flutter SDK, Kotlin SDK, Java SDK, .NET SDK, Node.js SDK, Swift SDK
10+
11+
.. facet::
12+
:name: genre
13+
:values: reference
14+
15+
.. facet::
16+
:name: programming_language
17+
:values: cpp, csharp, dart, java, javascript/typescript, kotlin, objective-c, swift
18+
719
.. contents:: On this page
820
:local:
921
:backlinks: none
10-
:depth: 1
22+
:depth: 2
1123
:class: singlecol
1224

13-
Overview
14-
--------
25+
.. tabs-selector:: drivers
26+
27+
MongoDB provides various resources for getting help with Atlas Device SDK and
28+
Atlas App Services.
29+
30+
.. tip:: Atlas Device SDK and Realm
1531

16-
MongoDB provides various resources for getting help with Atlas App Services.
32+
While the SDK has been renamed to Atlas Device SDK, some resources still
33+
reflect ``Realm`` naming.
1734

1835
Professional Support
1936
--------------------
@@ -35,9 +52,9 @@ Community Forums
3552
The official `MongoDB Community Forums
3653
<https://www.mongodb.com/community/forums/c/realm/9>`__ are a great
3754
place to meet other developers, ask and answer questions, and stay
38-
up-to-date with the latest Realm and App Services features and releases. You can also
39-
interact with MongoDB employees, like our community team, engineers, and
40-
product managers, who are active forum contributors.
55+
up-to-date with the latest Atlas Device SDK and App Services features and
56+
releases. You can also interact with MongoDB employees, like our community
57+
team, engineers, and product managers, who are active forum contributors.
4158

4259
Stack Overflow
4360
--------------
@@ -68,62 +85,56 @@ at the bottom right or right side of the page.
6885
Bug Reporting, and Changelogs
6986
-----------------------------
7087

71-
.. tabs-realm-sdks::
88+
You can report bugs or view the changelog in the relevant ``realm-SDK``
89+
repository in GitHub. While the SDK has been renamed to Atlas Device SDK, the
90+
GitHub repositories still reflect ``realm`` naming.
7291

73-
.. tab::
74-
:tabid: android
75-
76-
For the Java SDK:
77-
78-
- :github:`Report a bug <realm/realm-java/issues/new?template=bug_report.md>`
79-
- :github:`View the changelog <realm/realm-java/blob/master/CHANGELOG.md>`
92+
.. tabs-drivers::
8093

8194
.. tab::
82-
:tabid: ios
95+
:tabid: cpp-sdk
8396

84-
For the Swift SDK:
85-
86-
- :github:`Report a bug <realm/realm-swift/issues/new>`
87-
- :github:`View the changelog <realm/realm-swift/blob/master/CHANGELOG.md>`
97+
- :github:`Report a bug <realm/realm-cpp/issues/new>`
98+
- :github:`View the changelog <realm/realm-cpp/blob/master/CHANGELOG.md>`
8899

89100
.. tab::
90-
:tabid: dotnet
91-
92-
For the .NET SDK:
101+
:tabid: csharp
93102

94103
- :github:`Report a bug <realm/realm-dotnet/issues/new>`
95104
- :github:`View the changelog <realm/realm-dotnet/blob/master/CHANGELOG.md>`
105+
106+
.. tab::
107+
:tabid: dart
108+
109+
- :github:`Report a bug <realm/realm-dart/issues/new>`
110+
- :github:`View the changelog <realm/realm-dart/blob/master/CHANGELOG.md>`
96111

97112
.. tab::
98113
:tabid: javascript
99114

100-
For the Node.js, React Native, or Web SDKs:
101-
102115
- :github:`Report a bug <realm/realm-js/issues/new>`
103116
- :github:`View the changelog <realm/realm-js/blob/master/CHANGELOG.md>`
104117

105-
.. tab::
106-
:tabid: flutter
107-
108-
For the Flutter SDK:
109-
110-
- :github:`Report a bug <realm/realm-dart/issues/new>`
111-
- :github:`View the changelog <realm/realm-dart/blob/master/CHANGELOG.md>`
112-
113118
.. tab::
114119
:tabid: kotlin
115120

116-
For the Kotlin SDK:
117-
118121
- :github:`Report a bug <realm/realm-kotlin/issues/new>`
119122
- :github:`View the changelog <realm/realm-kotlin/blob/master/CHANGELOG.md>`
120123

121124
.. tab::
122-
:tabid: cpp
125+
:tabid: objectivec
123126

124-
For the C++ SDK:
127+
- :github:`Report a bug <realm/realm-swift/issues/new>`
128+
- :github:`View the changelog <realm/realm-swift/blob/master/CHANGELOG.md>`
125129

126-
- :github:`Report a bug <realm/realm-cpp/issues/new>`
127-
- :github:`View the changelog <realm/realm-cpp/blob/master/CHANGELOG.md>`
130+
.. tab::
131+
:tabid: swift
132+
133+
- :github:`Report a bug <realm/realm-swift/issues/new>`
134+
- :github:`View the changelog <realm/realm-swift/blob/master/CHANGELOG.md>`
128135

129-
136+
.. tab::
137+
:tabid: typescript
138+
139+
- :github:`Report a bug <realm/realm-js/issues/new>`
140+
- :github:`View the changelog <realm/realm-js/blob/master/CHANGELOG.md>`
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
C++ does not currently provide a method to delete all objects in the database.
2+
You can manually iterate through the objects and delete them if you need to
3+
clear the database.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C++ does not currently provide an API to delete all objects of a type.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
In this example, a ``Person`` has a to-one relationship to a ``Dog``,
2+
and the ``Dog`` has an inverse relationship to ``Person``.
3+
Setting the ``Person.dog`` relationship to ``nullptr`` removes the inverse
4+
relationship from the ``Dog`` object.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
You can delete multiple objects within a write transaction.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
1. Open a write transaction with :cpp-sdk:`db.write()
2+
<structrealm_1_1db.html>`.
3+
4+
#. Pass the object(s) you want to delete into the write block, or query for
5+
them inside the block.
6+
7+
.. important:: Objects Must Be Live
8+
9+
You can only delete live objects. If you are working with a frozen
10+
object or thread-safe reference, you must ``thaw()`` the object or
11+
``resolve()`` the thread-safe reference before deleting the object.
12+
For more details, refer to :ref:`sdks-threading`.
13+
14+
#. Call the ``remove()`` method with the object you want to delete as an
15+
argument.
16+
17+
#. The specified objects are deleted from the database and can no longer be
18+
accessed or modified. If you try to use a deleted object, the SDK throws an
19+
error.
20+
21+
If any deleted objects had a relationship with another object, the SDK
22+
only deletes the reference to the other object. The referenced object
23+
remains in the database, but it can no longer be queried through the deleted
24+
parent property. Refer to the :ref:`sdks-delete-related-objects` section
25+
for more information.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
To delete an object from the database, pass the object to the
2+
:cpp-sdk:`db.remove() function <structrealm_1_1db.html>`
3+
inside of a write transaction.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
To delete a :cpp-sdk:`map key
2+
<structrealm_1_1managed_3_01std_1_1map_3_01std_1_1string_00_01T_01_4_00_01void_01_4.html>`,
3+
pass the key name to ``erase()``.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
You can delete a :cpp-sdk:`list element
2+
<structrealm_1_1managed_3_01std_1_1vector_3_01T_01_5_01_4_01_4.html>`
3+
with ``erase()``, or remove all elements from the list with ``clear()``.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
You can delete a :cpp-sdk:`set element
2+
<structrealm_1_1managed_3_01std_1_1set_3_01T_01_5_01_4_01_4.html>`
3+
with ``erase()``, or remove all elements from a set with ``clear()``.

0 commit comments

Comments
 (0)