Equivalent Recipes (Calories)
Query to obtain recipes with similar macronutrient distribution
Example
query {
similarCaloriesRecipes(
recipeId: "UmVjaXBlOjE0ZGQ1N2ZmLTgxYzgtNGZhNS1iNjA0LTkwZTc0ZTdhNDc3Ng==",
numberOfServings: 1
) {
id
name
serving
numberOfServings
nutrientsPerServing {
calories
carbs
fat
protein
}
}
}{
"data": {
"similarCaloriesRecipes": [
{
"id": "UmVjaXBlOjk1M2JiY2U2LWM2M2UtNGZiOS1hZWM5LWRhYWVhZWUxODZlYQ==",
"name": "Blackberry Compote Oat Pot",
"serving": 1,
"numberOfServings": 2,
"nutrientsPerServing": {
"calories": 258,
"carbs": 28,
"fat": 8.5,
"protein": 17
}
},
{
"id": "UmVjaXBlOmIzY2ZjOGU2LWE4Y2UtNDMyZi04NjcwLWQ0MjZjYjE4MGE0OA==",
"name": "Vegan Blackberry Compote Oat Pot",
"serving": 1,
"numberOfServings": 2,
"nutrientsPerServing": {
"calories": 258,
"carbs": 28,
"fat": 8.5,
"protein": 17
}
},
{
"id": "UmVjaXBlOmU3ZmMwZWMyLWViNzEtNGNhYS05NjMzLWE1MjhmZWI0Y2ZkMA==",
"name": "Vegan Protein Shake & An Apple",
"serving": 1,
"numberOfServings": 1,
"nutrientsPerServing": {
"calories": 246.21,
"carbs": 36.97,
"fat": 3.88,
"protein": 15.84
}
}
]
}
}Last updated
Was this helpful?