Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
Realm Database

Model Data - Flutter SDK

Aplicaciones Realm modelan datos como objetos compuestos de pares campo-valor, donde cada uno contiene uno o más tipos de datos admitidos.

Los objetos Realm son clases regulares de Dart con las que puedes interactuar como con cualquier otra clase de Dart en tu aplicación. La memoria del SDK de Flutter mapea los objetos Realm directamente a Realm. Puedes trabajar con objetos Realm como lo harías con cualquier otra instancia de objeto Dart.

Every Realm object conforms to a specific object type, which is a class that defines the properties and relationships for objects of that type. The SDK guarantees that all objects in a realm conform to the schema for their object type and validates objects whenever they are created, modified, or deleted.

Para obtener más información sobre cómo definir objetos Realm, consulta Definir un esquema de objeto Realm.

When you define your Realm object model, you specify a set of of properties to include in the schema. You can define properties with the following characteristics:

  • Su tipo de dato

  • If it is optional or required

  • Si es una llave primaria

  • If it is indexed

  • If the property defines a relationship to another Realm object type

To learn more about property options when defining Realm objects, refer to the following documentation:

You can update your Realm schema over time as your application changes. The steps to update the schema and your data vary depending on the type of schema change. To learn more about the ways to update your schema, refer to Update a Realm Object Schema.

Volver

Realm Database

En esta página