How to log your custom recipe
The document will guide you through the steps to create and log your custom meal
Last updated
Was this helpful?
The document will guide you through the steps to create and log your custom meal
Last updated
Was this helpful?
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.
To have your own common or branded food created (not mandatory)
Through the example, use the following endpoints in the same order as they are listed below:
and/or to get the food Id, either for existing common or branded food.
and/or if you need to add a specific food to create your recipe.
or to get the FoodId
already added. Use this in the createMyRecipe
mutation.
by using the
FoodId
gathered before.
to list the recent recipe created and get its id to log it. (Optional Step)
mutation to log your meal based on the recipe you created above.
Name of the recipe: Vegan Milkshake
Follow the 5 steps below to create the Vegan Milkshake recipe to be then logged into your dairy:
Find all the steps detailed below in this . Modify the code accordingly.
Optional: If you cannot get the "ID", you can execute the query to get it.