Closed
Description
When you create an array discriminator, you do something like this:
var Clicked = docArray.discriminator('Clicked', clickedSchema);
But if you do a model discriminator you can add a third parameter to specify the discriminator key value:
var Clicked = Event.discriminator('Clicked', clickedSchema, "clicked");
Just wondering why we can't use a 3rd discriminator key parameter when we use array discriminators? I'm assuming the first parameter is still the model name, so it would be nice to have the ability to specify the key value if you want it to be different from the Model name.
Thanks!
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
vkarpov15 commentedon Sep 19, 2019
Good suggestion, will fix.
chaeron commentedon Sep 26, 2019
You going to update the documentation as well? ;-)
vkarpov15 commentedon Oct 1, 2019
I don't think we have docs for this yet, but that's definitely something to add for the future
14 remaining items