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
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.
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 areturn <></>
will trigger it), which makes me believe that it is just a symptom of something else. See: https://youtu.be/iq6YmhxFmgc