-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add details about querying custom persistable property
- Loading branch information
Showing
7 changed files
with
153 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...ce/includes/api-details/csharp/crud/read-query-mixed-properties-description.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,7 @@ | ||
You can query a :dotnet-sdk:`RealmValue <reference/Realms.RealmValue.html>` | ||
field just like any other data type. Operators that only work with certain | ||
types, such as string operators and arithmetic operators, ignore | ||
values that do not contain that type. Negating such operators matches | ||
values that do not contain the type. Type queries match the underlying | ||
type, rather than ``RealmValue``. Arithmetic operators convert numeric | ||
values implicitly to compare across types. |
7 changes: 7 additions & 0 deletions
7
source/includes/api-details/dart/crud/read-query-mixed-properties-description.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,7 @@ | ||
You can query a :flutter-sdk:`RealmValue <realm/RealmValue-class.html>` | ||
field just like any other data type. Operators that only work with certain | ||
types, such as string operators and arithmetic operators, ignore | ||
values that do not contain that type. Negating such operators matches | ||
values that do not contain the type. Type queries match the underlying | ||
type, rather than ``RealmValue``. Arithmetic operators convert numeric | ||
values implicitly to compare across types. |
1 change: 1 addition & 0 deletions
1
...i-details/generic/crud/read-query-custom-persistable-property-not-supported.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 @@ | ||
The selected language does not currently support type projection. |
36 changes: 36 additions & 0 deletions
36
...-details/objectivec/crud/read-query-custom-persistable-property-description.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,36 @@ | ||
Queries on SDK Objects | ||
`````````````````````` | ||
|
||
When working with projected types, queries operate on the persisted type. | ||
However, you can use the mapped types interchangeably with the persisted | ||
types in arguments in most cases. The exception is queries on embedded | ||
objects. | ||
|
||
.. tip:: | ||
|
||
Projected types support :ref:`sorting and aggregates <sdks-filter-data-swift>` | ||
where the persisted type supports them. | ||
|
||
Queries on Embedded Objects | ||
``````````````````````````` | ||
|
||
You can query embedded types on the supported property types within the | ||
object using memberwise equality. | ||
|
||
Object link properties support equality comparisons, but do not support | ||
memberwise comparisons. You can query embedded objects for memberwise | ||
equality on all primitive types. You cannot perform memberwise comparison | ||
on objects and collections. | ||
|
||
Dynamic APIs | ||
```````````` | ||
|
||
Because the schema has no concept of custom type mappings, reading data via | ||
any of the dynamic APIs gives the underlying persisted type. The SDK does | ||
support writing mapped types via a dynamic API, and converts the projected | ||
type to the persisted type. | ||
|
||
The most common use of the dynamic APIs is migration. You can write projected | ||
types during migration, and the SDK converts the projected type to the persisted | ||
type. However, reading data during a migration gives the underlying persisted | ||
type. |
39 changes: 39 additions & 0 deletions
39
...s/api-details/swift/crud/read-query-custom-persistable-property-description.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,39 @@ | ||
Queries on SDK Objects | ||
`````````````````````` | ||
|
||
When working with projected types, queries operate on the persisted type. | ||
However, you can use the mapped types interchangeably with the persisted | ||
types in arguments in most cases. The exception is queries on embedded | ||
objects. | ||
|
||
.. tip:: | ||
|
||
Projected types support :ref:`sorting and aggregates <sdks-filter-data-swift>` | ||
where the persisted type supports them. | ||
|
||
.. literalinclude:: /examples/generated/code/start/TypeProjection.snippet.query-objects-with-type-projection.swift | ||
:language: swift | ||
|
||
Queries on Embedded Objects | ||
``````````````````````````` | ||
|
||
You can query embedded types on the supported property types within the | ||
object using memberwise equality. | ||
|
||
Object link properties support equality comparisons, but do not support | ||
memberwise comparisons. You can query embedded objects for memberwise | ||
equality on all primitive types. You cannot perform memberwise comparison | ||
on objects and collections. | ||
|
||
Dynamic APIs | ||
```````````` | ||
|
||
Because the schema has no concept of custom type mappings, reading data via | ||
any of the dynamic APIs gives the underlying persisted type. The SDK does | ||
support writing mapped types via a dynamic API, and converts the projected | ||
type to the persisted type. | ||
|
||
The most common use of the dynamic APIs is migration. You can write projected | ||
types during migration, and the SDK converts the projected type to the persisted | ||
type. However, reading data during a migration gives the underlying persisted | ||
type. |
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