Embedded discriminator
See original GitHub issueIn polymorphic fields discrimintator(type field) and object are 2 separated fields. Is it possible somehow to embed the discriminator? To be possible
[
{ "type": "rectange", "width": 100, "height": 50 },
{ "type": "circle", "radius": 20 }
]
This will allow more cleaner json.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Embedded Discriminators in Mongoose 4.8
Mongoose 4.8 adds the ability to create discriminators on embedded arrays. Discriminators for Document Arrays. In mongoose ~4.8 you can define a ...
Read more >Mask-Embedded Discriminator With Region-Based Semantic ...
Toward this end, we propose a semi-supervised Generative Adversarial Network with a Mask-Embedded Discriminator, which is referred to as MED-GAN. By ...
Read more >Nested discriminator with mongoose | by Doruk Güneş - Medium
Let's try to understand nested discriminators in mongoose with a ... We will cover why we decided to embed the blocks under the...
Read more >Nested Discriminators - typegoose
Nested Discriminators may also be called "Embedded Discriminators". info. This Guide will use the assertion function that typegoose provides.
Read more >Compound indexes on parent + embedded discriminators
It seems to be possible to add indexes to the embedded discriminator, and mongoose already nests them. Say I want to add a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah alright, thanks for the link. I can probably offer something similar in Klaxon.
Reopening.
@raderio It should. Try it and let me know 😃