is it possible to define a polymorphic hasMany relationship in js-data?
For example, a User has many animals, where an Animal can be a Cat or a Dog (ES6/TS class Dog extends Animal
). If I request user.animals, I should receive a collection of cats and dogs, which may have their own custom properties.
I can't figure out from the docs how to setup my resource. Ember Data supports this.