Skip to content

Food

A food object

Fields

creator_name · String · The name of the food creator
cursor · Cursor! · required · Pagination cursor
default_serving_size · ServingSize · first serving size of the food object
display_name · String · The name of the food to display
edamam_import_id · String · The id of the food in the Edamam database
fdc_import · Boolean! · required · Whether the food was imported from the FDC database
id · ID! · required · The unique identifier of the food
name · String! · required · The name of the food
nutrients · [FoodNutrient!] · Nutrients of the food object
serving_sizes · [ServingSize!] · Serving sizes of the food object
user_id · String · The ID of the user who created the food

Used By

Definition

"""
A food object
"""
type Food {
"""
The name of the food creator
"""
creator_name: String
"""
Pagination cursor
"""
cursor: Cursor!
"""
first serving size of the food object
"""
default_serving_size: ServingSize
"""
The name of the food to display
"""
display_name: String
"""
The id of the food in the Edamam database
"""
edamam_import_id: String
"""
Whether the food was imported from the FDC database
"""
fdc_import: Boolean!
"""
The unique identifier of the food
"""
id: ID!
"""
The name of the food
"""
name: String!
"""
Nutrients of the food object
"""
nutrients: [FoodNutrient!]
"""
Serving sizes of the food object
"""
serving_sizes: [ServingSize!]
"""
The ID of the user who created the food
"""
user_id: String
}