Create "Own" Recipe

Create a new "own" recipe

CAUTION: Legacy Endpoint! Please refer to the User's recipe documentation for a new and improved way of creating your own recipe for food logging or other purposes.

Use the createOwnRecipemutation to create a new "own" recipe for the currently logged user. The purpose of creating a custom recipe is to add food with multiple ingredients to add them to your daily log.

Optional: use logAfterCreation to automatically add to the user's log after the item has been created.

Created recipes cannot be added to a meal plan.

Resources

List of Arguments

Required

Type

recipeName

true

String!

Name of the recipe

logAfterCreation

false

Boolean

Log this recipe after created? default: true

ingredients

true

Object that represents the list of ingredients related to the recipe

quantity

true

Float!

Quantity of the ingredients

serving

true

Float!

Servings quantity

mutation {
  createOwnRecipe(
    recipeName: "My cool bacon eggs"
    logAfterCreation:true
    ingredients: [
      {
        id: "01123",
        mealType: USDA_MEAL,
        quantity: 2,
        serving: 1
      },
      {
        id: "10123",
        mealType: USDA_MEAL,
        quantity: 1,
        serving: 1
      }
    ]
    quantity: 1
  ) {
    success
  }
}

Last updated