Own Recipe

Retrieve individual own recipe by id

Retrieve individual own recipe by giving the recipe Id.

Please refer to the User's recipe documentation for a new and improved way for searching your own recipe for food logging or other purposes.

Requirements

  1. Create your own recipe.

  2. Obtain your own recipe ID to be used in the mutation.

Required Argument

Argument

Type

Description

id

ID

Id of the own recipe

Available Fields

The following fields are displayed in the response:

Field

Type

Description

id

ID

Id of the own recipe

name

String

Name of the recipe

quantity

Int

Quantity of the recipe

ingredients

A structured version of a recipe ingredients

nutritionalInfo

A structured version of the nutritional information

Example

{
  ownRecipe(id: "TWVhbExvZzo1YmZkYTgzYy1jMzIwLTExZWItYTU3Mi1iYTg4YzNlMjJkODE=") {
    id
    databaseId
    name
    quantity
    ingredients {
      id
      name
    }
    nutritionalInfo {
      calories
      protein
      fat
      carbs
    }
  }

Last updated