Repository navigation
Update 0000-find-polymorphism.md - #244
BryanCrotaz wants to merge 1 commit into
Conversation
Add proposal for automatic hierarchy discovery
|
Hello, I never understood why this wasn't either the default behavior or available through some other means. Hopefully if this RFC is implemented we may finally have a non broken store in EmberJS ! |
| `hasMany({ polymorphic: true })` (and we just released 1.0 :( ) or to use an inconsistent mixed approach. | ||
|
|
||
|
|
||
| ## Auto discovery of heirarchy |
There was a problem hiding this comment.
I believe heirarchy should be spelled hierarchy.
|
|
||
| ## Auto discovery of heirarchy | ||
|
|
||
| The above would be much improved with auto discovery of heirarchy. This would remove the need for `abstractBaseClass` and the `polymorphic` flag on `find` etc could be inferred from whether a class has any descendants. |
There was a problem hiding this comment.
heirarchy -> hierarchy here too 🙂
|
Polymorphism for queries would be very useful! Random thoughts:
|
|
@runspired is this something you want to pursue? |
|
I don't think we need this anymore. Requests and the cache are now agnostic to type, and the identifiers RFC allows users to configure multiple types being considered as part of one identity. |
Add proposal for automatic hierarchy discovery