You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not exactly the pattern. When we use ChildEntity, we create our own Entity and DTO for each Child. Resolver should convert ChildEntity to ContactDTO based on the type. ContactEntity is abstract.
I wrote such a Resolver, but automatic filtering in the scheme does not work on it
User {
name: String!
contacts: [ContactDTO]
}
I realized that this is not an easy solution, so for now I keep all types of contacts in one column and additionally verify before saving
📚 Documentation
We need an example in the documentation of how to work with inherited entities.
There are two Entities in the same table.
How do I make
FilterableUnpagedRelation
with a common DTO?I need to transform
PhoneContactEntity
EmailContactEntity
toContactDTO
where value is either a phone number or an email.I'm trying to do it through
assemblers
, but how use two assemblers for one DTOOr choose a way to store data in different tables?
The text was updated successfully, but these errors were encountered: