Primitive Types
Describes how to deal with primitive field types from Cosmos to Domain
Last updated
Describes how to deal with primitive field types from Cosmos to Domain
Last updated
Primitive type fields are a one-to-one copy from Cosmos DB model into the Domain props.
Don't need id field on Domain Props side because already defined in EntityProps
Every field in domain props is required regardless of if it's optional on cosmos db side
primitive types are copied automatically as read-only in entity reference
no need to omit primitive type fields from entity reference like you would for non-primitive type
if domain object only has primitive types, entity reference should look exactly as above
Primitive fields require getter and setter methods in the domain class of the object
Primitive fields require getter and setter methods in the domain adapter of the object