Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class BaseModel extends Model {
static get allRelations() {
return '[' + Object.keys(this.relationMappings).join(',') + ']';
//And then inherit your models from that instead of Model.
class Person extends BaseModel {
//and then you can do this:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.