#Cannot read properties of undefined (reading 'type')

3 messages · Page 1 of 1 (latest)

outer pier
#

This seems to appear whenever I try to do some form of access validation on create for the collection and I pass in the user to the local API.

The access hooks receive the user and pass, but I think it might have to do with the relationship fields or joins on the document. Is there something I am missing here?

The solution is to set overrideAccess to true, but that kind of destroys the purpose.

All the collection fields are pretty standard aside from a couple relationship fields. However, I am not doing anything to trigger those collection hooks aside from setting the ID of the document within the relationship field.

obsidian umbra
#

@outer pier did you find a fix? we are also experiencing the same issue