can someone tell me what that is ?
# prisma-whats-new
m
can someone tell me what that is ?
d
I saw your message above, but I don’t know that I have an answer for you. I’d suggest posting this on the Graphcool forums at http://graph.cool/forum. This will help other developers who may have a similar issue later.
h
where did you get that from?
i
The link is on the graph.cool website
h
no, I mean @m1cl
m
Copy code
const getContact = async () => {
  const token = await localStorage.getItem('refreshToken')
  const query = await `
    mutation authenticateMutation($token: String!) {
      authenticate(token: $token){
        ok,
        user {
        first_name,
        last_name,
        email,
        client_id,
        id,
        },
      }
    }
  `
  const variables = { token, }
  const result = await request('/graphql', query, variables)
  return result.authenticate.user
}
If I console.log the result , I got the right object, but the return result returns this strange object with underscores
pls ignore the first 2 awaits,
any idea @harmony?
h
that's weird 🤔
is this client side?
m
yes
h
which library?
m
I use graphql-request and they said you can you async wait for i