Types.DocumentArray
Describes how to deal with a cosmos db field type of Types.DocumentArray
Cosmos DB Model
/infrastructure/data-sources/cosmos-db/models/physician.ts
Domain Props
/domain/contexts/physician/physician.ts
Domain Entity Reference
/domain/contexts/physician/physician.ts
Domain Class
Getter
/domain/contexts/physician/physician.ts
Setter
No setter for domain objects local to the aggregate root (Entity or ValueObject)
Only need setRef method for PopulatedDoc type fields
Domain Adapter
Getter
/domain/infrastructure/persistence/physician.domain-adapter.ts
Note: PhysicianLicenseDomainAdapter should exist in same file as PhysicianDomainAdapter
Setter
No setter for Types.DocumentArray type fields
Wil be handled in domain adapter for that domain context, PhysicianLicenseDomainAdapter
Last updated
Was this helpful?