Typically relational DBs provides referential integrity such that deleting a particular row that is referenced from another table through a foreign key relationship is not allowed to ensure referential integrity (i.e. references will always refer to an existing row)
Your documentation seems to have conflicting information:
Fauna supports the fully-denormalized document model, but referential integrity can be enforced in both transactions and indexes, thereby relieving application developers from implementing complicated logic to guarantee correctness.
Reffunction does not verify that the
schema_ref, or the
schema_ref, exists. This means that you can use
Refto create a reference to a non-existent document in a non-existent collection.
Which one is it?