Delete a Food Log Entry

Use the deleteFoodLog mutation to delete the specified meal log.

The deleteFoodLog mutation has the same functionality as the removeMealLog, however, this does not delete the logs created with the createMealLogmutation.

Required Argument

Available Fields

The following field will be part of the response.

Example

GraphQL Example

mutation {
  deleteFoodLog (id: "QnJhbmRlZEZvb2ROb2RlOjQ3OTk0MQ==")
    {
      success
      message
    }
  }

curl Example

curl -XPOST 'https://production.suggestic.com/graphql' \
  -H 'Authorization: Bearer <User-JWT>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"query":"mutation { deleteFoodLog(Id:\"QnJhbmRlZEZvb2ROb2RlOjQ3OTk0MQ==\") { success message } }"}'

Last updated