This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This script attempts to automatically create back-links for an Airtable linked record | |
* that references the same table. It supports an arbitrary number of links per record. | |
* It is susceptible to race conditions if multiple changes are made in quick succession. | |
* | |
* To use this, one would add it as an automation on the table, trigged by record updates | |
* to the "parents" or "children" columns. | |
* | |
* NOTE: some efficiency could be gained by having two scripts, one for parents and | |
* one for children, and triggering each one when appropriate. |