Create Log Entry
Create a new meal log entry
Use the createMealLog
mutation to create a new log entry for the logged-in user. This service is commonly used together with the autocomplete search.
Please note that depending on the mealType being logged a different combination of parameters will be required. Please review our Food Log Guide before starting.
This mutation will be soon deprecated. It is recommended to use addFoodLog
mutation
Required Arguments
Argument | Required? | Type | Description |
| True |
| The I.e. If you are logging a recipe, then |
| True | Available options are | |
| True |
| Available options are |
| True |
| The number of servings that is being logged |
| False |
| Represents the index of the item in the servings object that is being logged. Don't use this field if you are using the |
| False |
| If not using the I.e. If a protein bar weighs 100 grams (1 serving) and you want to log 0.8 servings, then this value would be 80. |
| False |
| format |
| False |
| format |
Example
Creating a new log entry for a recipe that was consumed for dinner on a particular date and time.
Last updated