References
A reference field links to another record. A Quest can point at the Character who gives it, and a Weapon can point at the Ability it grants. The records stay separate, and the link survives when either one is renamed. Admins and schema designers add them.
Add a reference field
Add a field as usual and choose the Reference type. Then pick a Target object type, the kind of record the field can point at.
Fill it in
In a record, a reference field is a search box. Start typing a name or a slug and pick from the matches. Records that belong to a child type of the target are included, and the picker shows which type each one is. For example, a field that targets Weapon can point at a Sword.
Records you haven't sent yet can be chosen too. They appear in the list as drafts.
You can also type or paste a slug or a name:
- A slug is tried first, because it's always unique.
- A name is tried next. If two records share the name, Stoatly lists both and you choose, rather than guessing.
- If nothing matches, Stoatly says so and leaves the text for you to fix.
See what points at a record
The Relationships panel on a record lists the records that point at it, under Referenced by. Check it before you delete or rename something.
When the target goes away
Deleting a record that others point at is allowed, but Stoatly warns you first and says how many records still point at it.
Deleting an object type that other types point at is also flagged. The warning names the fields that point at it and counts the records affected.