Invalid relationship value. Must be either an array of documents or document IDs, NULL given.
TL;DR
Developers receiving an error message "Invalid relationship value" when trying to change the value of an integer attribute. The issue is due to the value being expected as either an array of documents or document IDs. Solution: Ensure that the relationship value is set correctly as per the requirements.