Update Log Entry

Update a specific log entry

updateMealLog updates attributes of an existing meal log from the logged-in user

Available Arguments

Argument

Required?

Type

Description

databaseId

True

String!

mealTime

True

Available options are BREAKFAST, SNACK, LUNCH and DINNER

quantity

True

Float!

The number of servings that is being logged

serving

False

Float

Servings quantity

date

False

Date!

format YYYY-mm-dd

time

False

Time!

format HH:MM

customServingEquivalent

False

Float

Example

mutation {
  updateMealLog(
    databaseId: "8b26326af93911ebad1b6e546cdee6f4",
    date: "2020-04-02",
    mealTime: DINNER,
    quantity: 1,
    serving: 1,
    customServingEquivalent: 470,
    time: "16:00"
  ) {
    success
  }
}

Last updated