Query 'me' in api controller

System Information
  • Strapi Version: 4.0.7
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

This is probably the dumbest question ever, but i’ve searched for hours for an answer and i can’t find any solutions.

How do i run the following query for ‘me’ inside an API controller?

{
  me {
    username
  }
}

I’m an idiot.

ctx.state.user

Has the data.