forked from mongodb/docs-realm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to 12.9.0 for collections in mixed support
- Loading branch information
1 parent
78d4535
commit 8180c37
Showing
7 changed files
with
333 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
source/includes/sdk-examples/query/rql-example-data-model.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
.. tabs-drivers:: | ||
|
||
tabs: | ||
- id: cpp | ||
content: | | ||
|
||
.. literalinclude:: /examples/generated/cpp/asymmetric-sync.snippet.create-asymmetric-object.cpp | ||
:language: cpp | ||
|
||
- id: csharp | ||
content: | | ||
|
||
.. literalinclude:: /examples/generated/dotnet/RqlSchemaExamples.snippet.rql-schema-examples.cs | ||
:language: csharp | ||
|
||
- id: dart | ||
content: | | ||
|
||
.. literalinclude:: /examples/generated/flutter/task_project_models_test.snippet.task-project-models.dart | ||
:language: dart | ||
|
||
- id: java | ||
content: | | ||
|
||
.. code-block:: java | ||
public class Item extends RealmObject { | ||
ObjectId id = new ObjectId(); | ||
String name; | ||
Boolean isComplete = false; | ||
String assignee; | ||
Integer priority = 0; | ||
Integer progressMinutes = 0; | ||
@LinkingObjects("items") | ||
final RealmResults<Project> projects = null; | ||
} | ||
public class Project extends RealmObject { | ||
ObjectId id = new ObjectId(); | ||
String name; | ||
RealmList<Item> items; | ||
Integer quota = null; | ||
} | ||
- id: javascript | ||
content: | | ||
|
||
.. literalinclude:: /examples/generated/node/rql-data-models.snippet.rql-data-models.js | ||
:language: javascript | ||
|
||
- id: kotlin | ||
content: | | ||
|
||
.. literalinclude:: /examples/generated/kotlin/RQLTest.snippet.rql-schema-example.kt | ||
:language: kotlin | ||
|
||
- id: objectivec | ||
content: | | ||
|
||
.. literalinclude:: /examples/MissingPlaceholders/api.m | ||
:language: objectivec | ||
|
||
- id: swift | ||
content: | | ||
|
||
.. literalinclude:: /examples/MissingPlaceholders/api.swift | ||
:language: swift | ||
|
||
- id: typescript | ||
content: | | ||
|
||
.. include:: /examples/generated/node/v12/formatted/rql-data-models.snippet.rql-data-models.ts.rst |
Oops, something went wrong.