Comments (1)
One more thing that is making wonder, this means that the in the mapper the creation of that ValueObject
will fail in the toDomain
function, since there is no value returned, rather an error was. That means the creation of the entity will fail, so how would we propagate the error that is thrown from the creation of the ValueObect
to the UseCase
or even the Controller
.
from ddd-forum.
Related Issues (20)
- Why entity id is implemented as Entity and not ValueObject?
- Encountered some errors while trying to run locally. (TS2339: Property 'body' does not exist on type 'DecodedExpressRequest'.)
- Atomically send event and update the database `outbox pattern`
- IDs as value objects fail equality check HOT 1
- Lack of Example for Use Case Requiring Authorization
- There are no tests? HOT 1
- Guard against value objects
- UserId as Value Object || Entity ? HOT 1
- `null` values in the `Map.toDomain(c)` return. HOT 4
- [Question] How best to break up large use cases? HOT 1
- [Question] Sharing of errors between client & server. HOT 1
- [Question] Passing type and not using it in interface
- [Question]: Why not use Result everywhere? HOT 5
- [Question]: Usage of left/right monad & try/catch HOT 2
- [Question]: userId property in User class (also postId in Post etc.) HOT 3
- Making local dev easier and cleaning up the docs HOT 1
- Auto Logout if Refresh Token Expire frontend App?
- [Question] Typescript errors in Result class
- Injection of Domain Services
- Combined error in result issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddd-forum.