python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Polymorphism on DDD aggregates
I am designing my domain model and am having trouble understanding how to search for similar aggregates with the same id.
Lets say we have two aggregates ActiveEmployee and InactiveEmployee. They hade...
CEH
Votes: 0
Answers: 1
Handle inline polymorphism in typescript
Have an implementation of polymorphism in typescript.
enum empType {
developer = '1',
qa = '2',
manager = '3'
}
interface IEmployee {
type: empType;
ID: string;
name: string;
pro...

Abhilash Ranjan
Votes: 0
Answers: 1
NestJS - Nested polymorphism in sub schema
In NestJs, I am trying to let mongoose create a document based on a schema of which one of its properties can have different types. However, when I am saving the document, all the properties related t...

ant_hony
Votes: 0
Answers: 2
Rails: Polymorphic model, troubles with deletion
In my Rails movie database, I have now added a "Tag" model that can tag both movies and actors.
However I am not able to delete a tag that is used to tag either one of a movie or an actor (f...

tkhobbes
Votes: 0
Answers: 1