Skip to content
This repository was archived by the owner on Jul 14, 2019. It is now read-only.
This repository was archived by the owner on Jul 14, 2019. It is now read-only.

Where to hook in pre and path schema extensions? #12

@mathiasm74

Description

@mathiasm74

At the moment I've added my pre and path schema extensions in the implementation of a doInit() static function that I call for each document type on node-startup. Is this the way to do it, or is there a better (undocumented) way? If not, could you add something, similar to that for virtuals? E.g.

exports.pre = {
  save: function(next) {
  }
}

exports.paths = {
  theProperty: {
    set: function(newValue) {
      return ...
    }
    validate: function(newValue) {
      return ...
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions