User Schema
Profile, API keys and user preferences.
Queries
-
me
Returns the authenticated user profile (id, email, name, preferred language, etc.).
-
getApiKey
Returns the API key for the current employee. Use X-API-KEY header for authentication.
Mutations
-
updatePreferredLanguage
Updates the user preferred language (e.g., en, ru).
-
updateUser
Updates user info: first name, last name, preferred language.
-
updatePassword
Updates user password. Requires current password for verification.
-
createApiKey
Creates a new API key for the current employee. Use it for programmatic access.
-
updateApiKey
Regenerates the API key for the current employee. Previous key becomes invalid.