I'm trying to hook into the first save event when creating a new document. Looks like this.
User.schema.post('save', function (doc) {
console.log('The user is new? ', doc.isNew);
});
However even when I create a new user via the Keystone admin panel it returns false. Any idea why? Is the document getting touched again by Keystone in the background or something? How should I go about hooking into a new save?