-
Notifications
You must be signed in to change notification settings - Fork 88
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
Node and React Native Data Types #1065
Merged
+2,255
−310
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
849b626
New data types node rn (#1040)
d9d42cd
fixed refs for node.js data types
765c511
update doc
bbc7817
Remove accidental changes
9054308
added empty test file
c894f77
(DOCSP-15613): Added Node.js field types (#1041)
2755206
(DOCSP-15613): Node.js collections type (#1044)
b79ffbc
(DOCSP-15613): Node.js embedded objects type (#1047)
2475974
Docsp 14569 mixed data type (#1064)
efae8d0
(DOCSP-14565): Dictionary data type (#1058)
5f43200
(DOCSP-14577): UUID (#1067)
c003974
(DOCSP-14573): set data type (#1079)
2202f42
fill out field types
43e9e37
add react native data types as a copy of node data types
6b5aaef
add data types to toc
63a342e
fix rn mixed links
33d63be
attempt to add realm-js links
b2587f1
more grammar and woridng fixes
d7dbb9e
wording fixes
96870ba
Update source/sdk/node/data-types/uuid.txt
efb91b9
change uuid note on rn to match node
375093f
added note about obj id to both rn and node
f2035ae
Update source/sdk/node/data-types/mixed.txt
897704a
fix 'mixed' formatting on rn to match node
c44908b
change monospace to bold
e0ea0fc
fix spacing errors
97a5350
fix wording
99078cc
correct supported types for mixed
e0cc203
wording update
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
more grammar and woridng fixes
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ Field Types - Node.js SDK | |
{+client-database+} supports the following field data types: | ||
|
||
- ``bool`` maps to the JavaScript :mdn:`Boolean <Web/JavaScript/Reference/Global_Objects/Boolean>` type | ||
- ``int`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally {+client-database+} stores ``int`` with 64 bits. | ||
- ``float`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally {+client-database+} stores ``float`` with 32 bits. | ||
- ``double`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally {+client-database+} stores ``double`` with 64 bits. | ||
- ``int`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally, {+client-database+} stores ``int`` with 64 bits. | ||
- ``float`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally, {+client-database+} stores ``float`` with 32 bits. | ||
- ``double`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally, {+client-database+} stores ``double`` with 64 bits. | ||
- ``string`` maps to the JavaScript :mdn:`String <Web/JavaScript/Reference/Global_Objects/Boolean>` type. | ||
- ``decimal128`` for high precision numbers. | ||
- ``objectId`` maps to BSON :manual:`ObjectId </reference/method/ObjectId/>` type. | ||
|
@@ -24,6 +24,6 @@ Field Types - Node.js SDK | |
- ``list`` maps to the JavaScript :mdn:`Array <Web/JavaScript/Reference/Global_Objects/Array>` type. You can also specify that a field contains a list of a primitive value type by appending ``[]`` to the type name. | ||
- ``linkingObjects`` is a special type used to define an inverse relationship. | ||
- ``uuid`` is a universally unique identifier from :js-sdk:`Realm.BSON <Realm.html#.BSON>`. The ``UUID`` data type is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. | ||
- ``set`` is based on the JavaScript :mdn:`Set <Web/JavaScript/Reference/Global_Objects/Set>` type. ``{+service-short+} Set`` is is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. | ||
- ``set`` is based on the JavaScript :mdn:`Set <Web/JavaScript/Reference/Global_Objects/Set>` type. ``{+service-short+} Set`` is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. | ||
- ``dictionary`` used to manage a collection of unique String keys paired with values. The ``Dictionary`` data type is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. | ||
- ``mixed`` is a property type that can hold different data types. The ``Mixed`` data type is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ Field Types - React Native SDK | |
{+client-database+} supports the following field data types: | ||
|
||
- ``bool`` maps to the JavaScript :mdn:`Boolean <Web/JavaScript/Reference/Global_Objects/Boolean>` type | ||
- ``int`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally {+client-database+} stores ``int`` with 64 bits. | ||
- ``float`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally {+client-database+} stores ``float`` with 32 bits. | ||
- ``double`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally {+client-database+} stores ``double`` with 64 bits. | ||
- ``int`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally, {+client-database+} stores ``int`` with 64 bits. | ||
- ``float`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally, {+client-database+} stores ``float`` with 32 bits. | ||
- ``double`` maps to the JavaScript :mdn:`Number <Web/JavaScript/Reference/Global_Objects/Number>` type. Internally, {+client-database+} stores ``double`` with 64 bits. | ||
- ``string`` maps to the JavaScript :mdn:`String <Web/JavaScript/Reference/Global_Objects/Boolean>` type. | ||
- ``decimal128`` for high precision numbers. | ||
- ``objectId`` maps to BSON :manual:`ObjectId </reference/method/ObjectId/>` type. | ||
|
@@ -24,6 +24,6 @@ Field Types - React Native SDK | |
- ``list`` maps to the JavaScript :mdn:`Array <Web/JavaScript/Reference/Global_Objects/Array>` type. You can also specify that a field contains a list of a primitive value type by appending ``[]`` to the type name. | ||
- ``linkingObjects`` is a special type used to define an inverse relationship. | ||
- ``uuid`` is a universally unique identifier from :js-sdk:`Realm.BSON <Realm.html#.BSON>`. The ``UUID`` data type is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. | ||
- ``set`` is based on the JavaScript :mdn:`Set <Web/JavaScript/Reference/Global_Objects/Set>` type. ``{+service-short+} Set`` is is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. | ||
- ``set`` is based on the JavaScript :mdn:`Set <Web/JavaScript/Reference/Global_Objects/Set>` type. ``{+service-short+} Set`` is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. | ||
- ``dictionary`` used to manage a collection of unique String keys paired with values. The ``Dictionary`` data type is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. | ||
- ``mixed`` is a property type that can hold different data types. The ``Mixed`` data type is available in the :js-sdk:`[email protected] release <realm/realm-js/releases/tag/v10.5.0-beta.1>`. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed locally 👍 , ignoring the commit suggestion. Changed it to "...contains a list of primitive value types by appending
[]
"