Parsed Ingredient Lines

The parsedIngredientLinesfield returns a structured version of the recipe's ingredient lines.

When possible, we suggest using the ingredientLines field.

Arguments

Argument

Type

Optional

Description

preferredUnitSystem

UnitSystem

True

The preferred unit system, options: METRIC, IMPERIAL

List of Fields

Field

Type

Description

ingredientLine

String

The ingredient Line Input

ingredient

String

Parsed ingredient

quantity

String

Quantity value

unit

String

Unit name

other

String

Other string found on the ingredient line

comment

String

Other comment found on the ingredient line

Example

{
  recipe(id: "UmVjaXBlOjhjMTFlZTdlLTNkZjMtNDc5Yy1hOTQzLTE2YWY1MmE0NmZkZQ==") {
    id
    name
    parsedIngredientLines(preferredUnitSystem: METRIC) {
      ingredientLine
      ingredient
      quantity
      unit
      other
      comment
    }
  }
}

Last updated