Type alias PropertySchemaShorthand

PropertySchemaShorthand: string

The shorthand string representation of a schema for specifying the type of a Realm object property.

Required string structure:

  • (PrimitivePropertyTypeName | UserTypeName)("?" | "")("[]" | "{}" | "<>" | "")
    • "?"
      • The marker to declare an optional type or an optional element in a collection if the type itself is a collection. Can only be used when declaring property types using this shorthand string notation.
    • "[]" (list)
    • "{}" (dictionary)
    • "<>" (set)
      • The markers to declare a collection type. Can only be used when declaring property types using this shorthand string notation.

Example

"int"
"int?"
"int[]"
"int?[]"

See

PropertySchema for using the object representation of a property schema.

Generated using TypeDoc