metaschema icon indicating copy to clipboard operation
metaschema copied to clipboard

Save custom domain type name

Open nechaido opened this issue 3 years ago • 1 comments

It would be good to have a name property for custom types defined in ./types.js for a Model. That I would be able to use proper types in ERD generation

Additional context https://github.com/metarhia/metagram/pull/2#issuecomment-842244870

nechaido avatar May 19 '21 10:05 nechaido

You may use:

  • Model.prototype.types
  • Schema.prototype.findType
  • Schema.prototype.findReference

tshemsedinov avatar Jun 29 '21 23:06 tshemsedinov