Skip to content

Polymorphic fragmentArray and typeKey #468

@basz

Description

@basz

Hi

I used to be able to do this on a polymorphic model to get to the typekey given as argument in the model definition

const typeKey = this.contactModel.get('options.typeKey');

Currently (6.0.1) these event options is undefined. Did ember data remove that? I'm still using ember and ember-data 3.28.12

@fragmentArray('fragment/contact/contactcomponent', {
    polymorphic: true,
    typeKey: 'componentType',
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions