Defining MongoDB Fields

The following properties apply to a MongoDB Field object.

Tab

Property

Description

Additional Information

General

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Domain Parent Specifies the domain parent of the selected field  

Enums

Specifies the elements in the enum array

 

Value

Specifies the value of the selected field

 

Physical Name Specifies the physical name of the field  
Physical Data Type Specifies the physical data type of the field  

SDI

Specifies whether the selected field is included in the physical model only

 

Value Specifies the value for the selected field  
Exclude Schema Validator Specifies whether to exclude schema validation is run on a selected field during forward engineering schema generation By default, the field level validations are enabled based on the selected data type. Use this option to exclude data validations for a field during forward engineering schema generation.

Title

Specifies the description of a field

 

Min Length

Specifies the minimum length of text in a field

Available when the Domain Parent is set to String

Max Length

Specifies the maximum length of text in a field

Available when the Domain Parent is set to String

Pattern

Specifies the regular expression used to validate the string

Available when the Domain Parent is set to String

Minimum

Specifies the minimum length of the integer in a field

Available when the Domain Parent is set to Integer

Maximum

Specifies the maximum length of the integer in a field

Available when the Domain Parent is set to Integer

Multipleof

Specifies a number such that only its multiples are permissible in the field

Available when the Domain Parent is set to Integer

Exclusive Maximum

Specifies whether the value set in Maximum is excluded

Available when the Domain Parent is set to Integer

Exclusive Minimum

Specifies whether the value set in Minimum is excluded

Available when the Domain Parent is set to Integer

MinProperties

Specifies the minimum number of properties required for the object

Available when the Domain Parent is set to Object

MaxProperties

Specifies the maximum number of properties required for the object

Available when the Domain Parent is set to Object

Pattern Properties

Specifies the regular expression and schema that validates an additional property

Available when the Domain Parent is set to Object

Additional Properties

Specifies the additional properties that are not listed in the Properties keyword

Available when the Domain Parent is set to Object

Required

Specifies additional required properties for a field

Available when the Domain Parent is set to Object

Dependencies

Specifies the fields whose presence allows the schema of the object to change

Available when the Domain Parent is set to Object

MaxItems

Specifies the minimum length of an array

Available when the Physical Data Type is set to Array

MinItems

Specifies the maximum length of an array

Available when the Physical Data Type is set to Array

UniqueItems

Specifies whether the items in an array is unique

Available when the Physical Data Type is set to Array

Array Options

Specifies the array type

Available when the Physical Data Type is set to Array

Additional Items

Specifies additional valid JSON Schema for an array

Available when the Physical Data Type is set to Array

Comments

Specifies comments for the validation rule

 

Is Required

Specifies whether the field is mandatory

Enabling this option will also enable the Display Field Null Option in the ER Diagram Editor.

Combining Schema Option

Specifies the keyword for combining schemas together

allOf: Indicates that the given value must be valid against all of the subschemas

anyOf: Indicates that the given value must be valid against any of the subschemas

oneOf: Indicates that the given value must be valid against exactly one of the subschemas

not: Indicates that the given value must not be valid against the given schema

Union Data Type

Specifies one or more primitive data types that apply to the field