Map Field
Table of contents
Map field for firestore
Example Usage
const {Model, Field} = require("fireo");
class User extends Model{
marks = Field.Map();
}
const u = User.init();
u.marks = {'Math': 70, 'English': 80}
Allowed Attributes
The following attributes supported by Boolean Field.
-
Default
Default value for field. This is base attribute that is available in all fields. Read More
-
Required
Set
true
if value is required for the field. This is base attribute that is available in all fields. Read More -
Custom Name
Set different name in Firestore instead of field name. This is base attribute that is available in all fields. Read More