ModelFieldDefinition class
Static Methods
-
belongsTo({required QueryField key, bool isRequired = true, required String ofModelName, QueryField? associatedKey, String? targetName, List<String>? targetNames})
→ ModelFieldDefinition
-
-
customTypeField({required String fieldName, bool isRequired = true, bool isArray = false, ModelFieldType ofType = const ModelFieldType(ModelFieldTypeEnum.string)})
→ ModelFieldDefinition
-
-
embedded({required String fieldName, bool isRequired = true, bool isArray = false, ModelFieldType ofType = const ModelFieldType(ModelFieldTypeEnum.string)})
→ ModelFieldDefinition
-
-
field({required QueryField key, bool isRequired = true, bool isArray = false, bool isReadOnly = false, ModelFieldType ofType = const ModelFieldType(ModelFieldTypeEnum.string), ModelAssociation? association, List<AuthRule>? authRules})
→ ModelFieldDefinition
-
-
hasMany({required QueryField key, bool isRequired = true, required String ofModelName, required QueryField associatedKey})
→ ModelFieldDefinition
-
-
hasOne({required QueryField key, bool isRequired = true, required String ofModelName, required QueryField associatedKey})
→ ModelFieldDefinition
-
-
id({String name = 'id'})
→ ModelFieldDefinition
-
-
idKey(QueryField key)
→ ModelFieldDefinition
-
-
nonQueryField({required String fieldName, bool isRequired = true, bool isArray = false, bool isReadOnly = false, ModelFieldType ofType = const ModelFieldType(ModelFieldTypeEnum.string), ModelAssociation? association, List<AuthRule>? authRules})
→ ModelFieldDefinition
-