Food Log Entries

The foodLogs query retrieves a comprehensive list of food log entries for the authenticated user within a specified date range. This query allows access to data for all food categories.

Available Arguments

Argument

Type

Required?

Description

Start

Date

True

Starting filter date range, format YYYY-mm-dd

End

Date

True

Ending filter date range, format YYYY-mm-dd

Id

String

False

ID of the logged food. Add this parameter to get the specific information of a logged food.

Available Fields

Field

Type

Note

name

String

Name of the logged item

date

Date

Date of the log entry

mealType

MealType

Type of meal that was logged. RECIPE, MENU_ITEM

servings

Object that contains predefined serving types and sizes

serving

Float

Index of the servings element that was logged

quantity

Float

Quantity of logged servings

servingWeight

Float

Weight in grams of each serving

food

Food

union Food = BrandedFoodNodeProxy, CommonFoodNodeProxy, MealProxy, MyBrandedFoodProxy, MyCommonFoodProxy, RecipeProxy, UserRecipeProxy.

Pagination

The foodLogs query supports the use of pagination. The following fields can be used

Refer to the pagination documentation for more information.

Examples

GraphQL Examples

Get the meals logged on specific dates

The following example retrieves the meals logged between to given dates:

curl Example

GraphQL Example

GraphQL Example with nutrients and all food data types

Last updated

Was this helpful?