copleykj / socialize-base-model

MIT License
14 stars 12 forks source link

updateTransformFunction does not get applied #23

Closed StorytellerCZ closed 1 year ago

StorytellerCZ commented 1 year ago

Meteor 2.11 had upgraded the MongoDB driver. After that classes no longer attach to the data so calling any of the methods causes an error.

Update: So after more investigation I have narrowed it down to a strange behavior where updateTransformFunction does not get applied to documents that are fetched. It is also selective as for the users collection it gets applied, but for the rest it won't. From git I have narrowed it down to a commit that removes completely unrelated UI component (heck just removing dead code after a return <></> will trigger it), which makes me believe that it is just a symptom of something else. See: https://youtu.be/iq6YmhxFmgc

StorytellerCZ commented 1 year ago

Speaking of updateTransformFunction, @copleykj do you think we could add a feature where we could apply the class to objects? My use case would be to apply the class to GraphQL objects of the collection.