Food Log Entries (Legacy)

Retrieving user's food log entries.

The mealLog query retrieves a list of log entries for the authenticated user for a selected date range.

Arguments

Argument

Required?

Type

Description

fromDate

True

Date!

Starting filter date range, format YYYY-mm-dd

toDate

True

Date!

Ending filter date range, format YYYY-mm-dd

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

{
  mealLog(fromDate: "2020-01-01" toDate: "2020-01-21") {
    edges {
      node {
        name
        date
        mealType
        databaseId
      }
    }
  }
}

Last updated