Hello there,
I'm attempting to resolve this error in a MongoDB insertOne query while loading an application.
Error: Cannot read properties of null (reading '_id')
insertOneDerivedAttribute!
from insertOneDerivedAttribute.query update(insertOneDerivedAttribute)
from derivedAttributes.selectedRow update(derivedAttributes)
from user interaction
The query is really simple:
{
"derivedAttributeName": {{ formDerivedAttribute.data.textInputInternalName }},
"derivedAttributeType": {{ formDerivedAttribute.data.selectDerivedAttributeType }}
}

Could somebody help me?
Any thoughts are welcome.
Thanks,