How to log your custom recipe
The document will guide you through the steps to create and log your custom meal
Overview
Custom recipes is a great way to quickly enter meals into your diary, they let you save food with multiple ingredients so you can quickly add it to your daily log. So, instead of adding individual food you eat at breakfast daily, you can create a "My Breakfast routine" recipe with all of these ingredients. So you time consuming will be way far better.
In this example, you will see how to create and log your custom recipe.
Requirements
To have your own common or branded food created (not mandatory)
API endpoints to use
Through the example, use the following endpoints in the same order as they are listed below:
commonFoods
and/orbrandedFoods
to get the food Id, either for existing common or branded food.createMyCommonFoods
and/orcreateMyBrandedFoods
if you need to add a specific food to create your recipe.myCommonFoods
orMyBrandedFoods
to get theFoodId
already added. Use this in thecreateMyRecipe
mutation.createMyRecipe
by using theFoodId
gathered before.myRecipes
to list the recent recipe created and get its id to log it. (Optional Step)createMealLog
mutation to log your meal based on the recipe you created above.
Code Example
Find all the steps detailed below in this graphqlbin. Modify the code accordingly.
Example
Name of the recipe: Vegan Milkshake
Follow the 5 steps below to create the Vegan Milkshake recipe to be then logged into your dairy:
Last updated