Skip to content

Getting the current user name in a Custom Application API #3054

Answered by Rhotimee
richardtappenden asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @richardtappenden, yes, you can query for the current logged-in user.
This uses the user's token to fetch the user information.

See the snippet below.

query MyQuery {
  me {
    firstName
    email
    id
  }
}

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Rhotimee
Comment options

@richardtappenden
Comment options

@Rhotimee
Comment options

@Rhotimee
Comment options

@richardtappenden
Comment options

Answer selected by emmenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants