OBJECT

ServingSize

A serving size object

link GraphQL Schema definition

  • type ServingSize {
  • # number of servings
  • amount: Float
  • # Calories of serving size
  • calories: Float
  • fdc_import: Boolean
  • food_id: String
  • food_portion_id: ID
  • id: ID!
  • # percentage of 100g. For example if modifier is 2.5 then this serving size is
  • # 250g
  • modifier: Float
  • # Arguments
  • # food_search: If true, only returns nutrients if food is created
  • # by user ()
  • nutrients(food_search: Boolean): [FoodNutrient]
  • # type of serving (i.e grams, scoop, spoonful)
  • unit: String
  • }