talyssonoc/structure

Permit a type to reference itself in its schema

talyssonoc opened this issue · 0 comments

Currently it's not possible to do something like this:

const User = attributes({
  name: String,
  friends: {
    type: Array,
    itemType: User
  }
})(class User { });

It would be nice to have a clean way to do that.