Skip to main content

Update Member

updateMember mutation is used to update a member. It takes UpdateMemberInput as an input. You need to provide the id of the member.

mutation {
updateMember(id: "L7JSFGetPt", input: {
name: "Siavash"
tagline: "CEO at Bettermode"
}) {
id
name
tagline
}
}

This will update the member in your community.

Update Custom Profile Fields

You can use the updateMember mutation to update the custom profile fields as well. You have to use the fields attribute of the UpdateMemberInput.

note

Please note that you have to JSON.stringify the value of the custom profile fields. Based on the field type, you can pass a JSON stringified string, array, or object.

mutation {
updateMember(id: "L7JSFGetPt", input: {
fields: {
key: "website",
value: "\"https://bettermode.com\""
}
}) {
fields {
key
value
}
}
}