You can use this to initialize a user's basic profile.
mutation CreateProfile($userId: ID!, $input: ProfileInput!) {
tenant {
createProfile(userId: $userId, input: $input) {
id
photoUrl
nickname
firstName
lastName
fullname
user {
id
username
}
}
}
}
{
"userId": 1,
"input": {
"nickname": "Samurai",
"firstName": "Johnny",
"lastName": "Silverhand"
}
}
{
"data": {
"tenant": {
"createProfile": {
"firstName": "Johnny",
"fullname": "Johnny Silverhand",
"id": "1",
"lastName": "Silverhand",
"nickname": "Samurai",
"photoUrl": null,
"user": {
"id": "1",
"username": "someone@example.com"
}
}
}
}
}