Sign in Go Pro


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



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.


Sample Code



Lessons in Realm