Sign in Go Pro

Realm

Adding New Objects and Creating Object References

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Previous

About

You will eventually need to add a new object to your Realm database. This can be a individual object reference or a list reference. This lesson will show you how to do both. In this lesson you will learn: - How to create a new Realm object with a Realm migration - How to create a Realm object reference in a migration - How to create an objet with `PRIMARY_KEY` and `REQUIRED` field attributes in a migration. - How to create a List reference to a Realm object in a migration. ### Links - [Realm Migrations](https://realm.io/docs/java/latest/#migrations) ### Sample Code - [Sample Code](https://github.com/CasterIO/RealmExamples/tree/migrations-creating-objects-and-references)

Instructor

Links

Lessons in Realm