We don't understand why transform is relevant here. transform is used at read time, not write time. Is this specifically for when you invoke insert allow/deny callbacks on the server? I think your change to the mutation methods (line 666) should handle that.