Skip to content

updateCurrentUser returns pre updated user data #43

@zigzactly

Description

@zigzactly

async updateCurrentUser(
parent: any,
{ data }: { data: UserUpdateInput },
ctx: Context
) {
const user = await getUser(ctx);
await ctx.graphqlAuthentication.adapter.updateUserInfo(ctx, user.id, data);
return user;
}

If graphql query includes returning name or email, it returns old pre-updated daata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions