Update Profile

Update user's profile

General profile attributes can be updated through this mutation.

Available Arguments

Even though the following arguments are not required, add at least one of them.

Arguments

Type

Description

name

string

User's name

email

string

User's email address, which is unique and used to log in to the Suggestic app.

timezone

String

It can be any name in the list of database time zones. For example: "America/Los_Angeles": https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

birthdate

Date

The user's birthday in YYYY-MM-DD format. Ex: "1984-08-23"

language

String

User language preference. Possible values:

EN: English

ES: Spanish

NL: Dutch

AR: Arabic BE: English-UK

favoriteCuisines

[String]

User's favorite cuisines.

Examples

The following example will update the user's name and email

mutation {
  updateProfile(name: "LilianaI", email: "liliana@suggestic.com") {
    success
    errors {
      field
    }
  }
}

The following example updates the user language preference from English to Spanish:

mutation {
  updateProfile(language: ES) {
    success
  }
}

The following example updates the user favorite cuisines:

mutation {
  updateProfile(favoriteCuisines:["Indian","Mexican","American"]) {
    success
    errors {
      field
    }
  }
}

Last updated