Composite (Compounf) Primary Key


#1

What is the recommended way to support composite keys?

The answers on StackOverflow seem to be now outdated and I can’t see anything in your documentation?

Thanks in advance.


#2

@olliem36 Composite keys are generally not needed in Realm and are only used to integrate with other systems that use compound keys such as JOIN tables here:
https://docs.realm.io/platform/using-synced-realms/server-side-usage/data-integration/mssql-data-connector#many-to-many-relationships

What are you trying to do and what does your schema look like?


#3

Combine the fields into a single string.