Is there a way to set a custom relation name or make use of "source_key"?

Using the web UI I cannot find a way to set a custom name for a relationship or to use the source_key parameter?

For example if I have the following schema,

tableA
  _id

tableB
  _id
  tableA

With the current relationship interface, if I set up the relation on tableA to tableB then the _id property on tableA would be overwritten with the tableB object. I would like the functionality of the source_key property from the realm docs which would allow me to set my own name for the relationship and not overwrite the key.

When I try to add the source_key field manually it spits out an error, json: unknown field "source_key"

Any help would be greatly appreciated, thanks.

Hi @Shobo,

I’ve answered in detail in your Support query, but, in a nutshell, source_key is not allowed in the web interface, because it’s automatically defined as the corresponding property in the collection you’re setting the relationship for.