Back to main page

PrimitiveProposition

Concept:

PrimitiveProposition states a field's value, in the same way as the '$is' operation. It should always be used inside a field declaration of a document proposition.

For example, in the proposition {"field":"value"} the string "value" is the primitive proposition. This declaration is equivalent with {"field":{"$is":"value"}}, where {"$is":"value"} is the equivalent '$is' operation.

Format:

    int | long | decimal | boolean | null | string

Example 1:

    4

Example 2:

    4.0

Example 3:

    false

Example 4:

    null

Example 5:

    "text"