OBJECT

ServingSize

A serving size object

link GraphQL Schema definition

  • type ServingSize {
  • # The number of servings
  • amount: Float
  • # The calories of serving size
  • calories: Float
  • # Whether or not this serving size was imported from the USDA database
  • fdc_import: Boolean!
  • # The food id of the food this serving size belongs to
  • food_id: String
  • # The id of the food portion this serving size belongs to
  • food_portion_id: ID
  • # The unique identifier of the serving size
  • id: ID!
  • # percentage of 100g. For example if modifier is 2.5 then this serving size is
  • # 250g
  • modifier: Float
  • # The nutrients of this serving size
  • #
  • # Arguments
  • # food_search: If true, only returns nutrients if food is created
  • # by user ()
  • nutrients(food_search: Boolean): [FoodNutrient!]
  • # The type of serving (i.e grams, scoop, spoonful)
  • unit: String
  • }