Finding broken references

Giri,

It does make sense. The use case is the one where the single ref points to record that no longer exists. Had not tried your method (I guess I may have been overthinking it), so will give that a whirl.

I have also tried to find a method that works with multi ref fields. Still a work in progress, but that is a bit more difficult, as multi refs return an array or object that has to be parsed to determine the broken reference. I have a “wish list” item out there to improve referential integrity, but I suspect that may be constrained by the limits of MongoDB as it is exposed to Velo. Thanks for the help.