Composite (Compounf) Primary Key


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.


@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:

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


Combine the fields into a single string.