The schema is an object responsible to map the attributes Structure should handle, it is the parameter of the attributes function.
attributes
attributes({ name: String, age: Number })(class User { });
There are two ways to declare an attribute of the schema, the shorthand type descriptor and the complete type descriptor.
Last updated 5 years ago