- Source:
Members
(inner, constant) IngredientSchema
Schema object for the Ingredient model.
Properties:
Name | Type | Description |
---|---|---|
name |
string | Ingredient Name |
image_url |
string | This is unlikely to be implemented. |
calories |
string | |
vitamin_A |
string | |
vitamin_B |
string | |
vitamin_C |
string | |
cholesterol |
string | |
carbohydrates |
string | |
protein |
string | |
TBD |
string | More nutrients will be added. |
- Source:
Methods
(inner) checkInt(fieldName)
Validator that checks if nutrient numbers are integers
Parameters:
Name | Type | Description |
---|---|---|
fieldName |
number |
- Source: