new Schema(name, fields)
A LiveView Schema is used for Queries and Tables to define their respective schemas.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the schema |
fields |
Array | Array of fields that compose the schema. |
Members
fields :Array
The fields that define this schema as an array. The array preserves field order as received from the
LiveView server.
Type:
- Array
fieldsMap :Object.<String, LiveView.Field>
The fields that define this schema mapped by field name. The order of fields in the field map may not be
consistent with the actual schema ordering. The fields array maintains fields in the correct order.
Type:
- Object.<String, LiveView.Field>
name :String
Name of the Schema.
Type:
- String