Skip to content

Gun-Vue docs v0.21.4Docs


Gun-Vue docs v0.21.4 / User / updateProfile

Function: updateProfile()

updateProfile(field, data): void

Update a profile field

Parameters

field: string

Field name

data: string

Field value

Returns

void

Example

ts
import { updateProfile } from '@gun-vue/composables'

updateProfile('city', 'Bangkok')

Defined in

src/user/useUser.js:235

MIT