Skip to content

Commit

Permalink
(DOCSP-24589): Flutter indexable fields (#2259)
Browse files Browse the repository at this point in the history
  • Loading branch information
mongodben authored Nov 5, 2022
1 parent d3866dd commit b41ec80
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/sdk/flutter/realm-database/define-realm-object-schema.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,16 @@ Indexed

Add the `Indexed <https://pub.dev/documentation/realm_common/latest/realm_common/Indexed-class.html>`__ annotation
to create an index on the field. Indexes slightly slow down insertion, but can greatly
speed up queries.
speed up queries. Indexes can be nullable.

The following data types can be indexed:

- ``bool``
- ``int``
- ``String``
- ``ObjectId``
- ``Uuid``
- ``DateTime``

.. literalinclude:: /examples/generated/flutter/schemas.snippet.property-annotations.dart
:language: dart
Expand Down

0 comments on commit b41ec80

Please sign in to comment.