Closed ngyv closed 6 years ago
Something like
{ id: type('number', { required: true }), name: type('string', { default: 'Nurul' }), account: belongTo('account'), // not v1.0.0 hobbies: hasMany('hobby', { async: true }), // not v1.0.0 partner: hasOne('user', { recursive: true }) // not v1.0.0 }
Something like