Skip to content

updateCurrentUser returns pre updated user data #43

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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