Hey All, QQ - I got Auth0 setup but I'm trying to ...
# prisma-whats-new
b
Hey All, QQ - I got Auth0 setup but I'm trying to query the data from the user such as the user's name. I have this query and a component that displays the data props of this query but I'm getting undefined for id or name.
Copy code
const userQuery = gql`
  query userQuery {
    user {
      id
      name
    }
  }
How do I get the logged in users data?
n
have a look here to see what it means when
user
is `null`: https://www.graph.cool/docs/faq/graphcool-session-user-goij0cooqu/
👍 1