Skip to content

(DOCSP-12694): Add "tip" to look at SDKs and Schemas page in the Realm UI to connect client models sections #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/includes/steps-tutorial-android-kotlin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ content: |
projects in the ``User`` object. Tasktracker stores each ``User``
object in a special :ref:`{+realm+} <partitioning>` with a value of
the following format: ``user=<user-id>``.

.. note::

To learn more about how {+service-short+} Object models are used in Android applications,
see :doc:`Realm Objects </android/objects>` in our Android client guide.

To access the user's list of projects, we need to open a connection to
that {+realm+} and access the ``User`` object. To get started, open
Expand Down
5 changes: 5 additions & 0 deletions source/includes/steps-tutorial-ios-swift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ content: |
.. literalinclude:: /tutorial/generated/code/final/Models.codeblock.user-model.swift
:language: swift

.. note::

To learn more about how {+service-short+} Object models are used in iOS applications,
see :doc:`Realm Objects</ios/objects>` in our iOS client guide.

Next, implement the Project embedded object that represents a Project that a
User is a member of:

Expand Down
5 changes: 5 additions & 0 deletions source/includes/steps-tutorial-react-native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ content: |
member of. We have set up our app so that the custom user data object exists
in a specific realm, where at most one user object exists.

.. note::

To learn more about how {+service-short+} Object models are used in React Native applications,
see :doc:`Realm Objects </react-native/objects>` in our React Native client guide.

Open the realm for that user with the partition key value following the
pattern ``user=<USER_ID>``.

Expand Down
5 changes: 5 additions & 0 deletions source/tutorial/nodejs-cli.txt
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ In ``projects.js``:
.. literalinclude:: /tutorial/generated/code/final/projects.codeblock.getProjects.js
:language: javascript

.. note::

To learn more about how {+service-short+} Object models are used in Node.js applications,
see :doc:`Realm Objects </node/objects>` in our Node.js client guide.

F. Use Realm Functions
----------------------

Expand Down
7 changes: 6 additions & 1 deletion source/tutorial/web-graphql.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,15 @@ connect to your app's GraphQL API.
F. Implement the Projects List
------------------------------

As defined by our data model, ``projects`` are an embedded object of the ``users`` object.
As defined by our data model, ``projects`` are an :term:`embedded object` of the ``users`` object.
Therefore, if we want to retrieve a list of projects, we'll have to access the :ref:`user custom
data object </users/enable-custom-user-data>`.

.. note::

To learn more about how {+service-short+} Object models are used in Node.js applications,
see :doc:`Realm Objects </node/objects>` in our Node.js client guide.

In the file ``/graphql/useProjects.js``, we need to implement the retrieval of the
current user's projects. We'll need to add the following code:

Expand Down