Add mechanism for adding data server-side to client initiated insert and updates #575

Closed
timhaines opened this Issue Dec 27, 2012 · 2 comments

3 participants

@timhaines

Currently it seems 'deny' must be used to add data on the server side during a client initiated insert(*). It would be nice to see a mechanism added for document manipulation explicitly.

Maintaining createdAt and updatedAt timestamps is a common use case that would be nice to support elegantly.

@gschmidt
Meteor Development Group member

Thanks for flagging this. I agree that using deny for this is a pretty crazy hack.

I think that the right way to handle this is a schema layer that includes validators, flexible mapping of field names to Mongo document names or in the future SQL column names (as you suggested on roadmap.meteor.com), createdAt and updatedAt, as well as maybe arbitrary hooks that can run on create, update, and delete.

@glasser
Meteor Development Group member

We do not use GitHub to track feature requests (other than for Blaze). The core team's current roadmap is at https://roadmap.meteor.com/. Discussions about features that users desire are great topics for the meteor-talk mailing list, where the community can help come up with solutions that don't require core changes.

@glasser glasser closed this Apr 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment