Skip to content

Commit bb04d6a

Browse files
authored
(DOCSP-26785): Add missing SDKs to Realm Studio docs (mongodb#2373)
## Pull Request Info The Realm Studio docs were missing some SDKs in tabbed content. ### Jira - https://jira.mongodb.org/browse/DOCSP-26785 ### Staged Changes - [Open a Realm File](https://docs-mongodbcom-staging.corp.mongodb.com/realm/docsworker-xlarge/DOCSP-26785/studio/open-realm-file/#find-a-realm-file). Added code samples for finding a realm (Flutter and Kotlin). - [Modify Schema in a Realm Studio](https://docs-mongodbcom-staging.corp.mongodb.com/realm/docsworker-xlarge/DOCSP-26785/studio/modify-schema/#perform-a-migration). Added a link to Flutter's migration content. ### Reminder Checklist If your PR modifies the docs, you might need to also update some corresponding pages. Check if completed or N/A. - [ n/a ] Create Jira ticket for corresponding docs-app-services update(s), if any - [ n/a ] Checked/updated Admin API - [ n/a ] Checked/updated CLI reference ### Review Guidelines [REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md) ### Animal in a hat <img src="https://as1.ftcdn.net/v2/jpg/02/97/16/54/1000_F_297165421_mrG1OM9S47TJtbUL6jOANBbZETn3ekKG.jpg" height="500">
1 parent f4150eb commit bb04d6a

File tree

4 files changed

+44
-5
lines changed

4 files changed

+44
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. code-block:: flutter
2+
3+
// Get on-disk location of the default Realm
4+
final storagePath = Configuration.defaultStoragePath;
5+
// See value in your application
6+
print(storagePath);
7+
8+
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.. code-block:: kotlin
2+
3+
config = SyncConfiguration.Builder(user, setOf(Item::class))
4+
.initialSubscriptions { realm ->
5+
add(
6+
realm.query<Item>(
7+
"owner_id == $0",
8+
realmApp.currentUser!!.identity
9+
),
10+
"User's Items"
11+
)
12+
}
13+
.build()
14+
15+
// Log on-disk location of the realm file
16+
Log.v("My Tag", "Realm Path: ${config.path}")
17+

source/studio/modify-schema.txt

+9-5
Original file line numberDiff line numberDiff line change
@@ -120,24 +120,28 @@ migration guide.
120120
.. tab::
121121
:tabid: android
122122

123-
:ref:`Schema Versions & Migrations - Java SDK <java-schema-versions-and-migrations>`
123+
:ref:`Schema Versions & Migrations - Realm Java SDK <java-schema-versions-and-migrations>`
124124

125125
.. tab::
126126
:tabid: ios
127127

128-
:ref:`Schema Versions & Migrations - Swift SDK <ios-schema-versions-and-migrations>`
128+
:ref:`Schema Versions & Migrations - Realm Swift SDK <ios-schema-versions-and-migrations>`
129129

130130
.. tab::
131131
:tabid: node
132132

133-
:ref:`Schema Versions & Migrations - Node.js SDK <node-schema-versions-and-migrations>`
133+
:ref:`Schema Versions & Migrations - Realm Node.js SDK <node-schema-versions-and-migrations>`
134134

135135
.. tab::
136136
:tabid: react-native
137137

138-
:ref:`Schema Versions & Migrations - React Native SDK <react-native-schema-versions-and-migrations>`
138+
:ref:`Schema Versions & Migrations - Realm React Native SDK <react-native-schema-versions-and-migrations>`
139139

140140
.. tab::
141141
:tabid: dotnet
142142

143-
:ref:`Schema Versions & Migrations - .NET SDK <dotnet-schema-versions-and-migrations>`
143+
:ref:`Schema Versions & Migrations - Realm .NET SDK <dotnet-schema-versions-and-migrations>`
144+
.. tab::
145+
:tabid: flutter
146+
147+
:ref:`Schema Versions & Migrations - Realm Flutter SDK <flutter-manually-migrate-schema>`

source/studio/open-realm-file.txt

+10
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ To find your default realm file path:
6363

6464
.. include:: /includes/find-realm-file-dotnet.rst
6565

66+
.. tab:: Flutter
67+
:tabid: flutter
68+
69+
.. include:: /includes/find-realm-file-flutter.rst
70+
71+
.. tab:: Kotlin
72+
:tabid: kotlin
73+
74+
.. include:: /includes/find-realm-file-kotlin.rst
75+
6676
Once you know the location of your local realm file, you can browse
6777
to that location from the :guilabel:`Open Realm file` dialog.
6878

0 commit comments

Comments
 (0)