It seems like they have invented a new query language called GROQ that sites on top of GraphQL:
https://www.sanity.io/docs/front-ends/what-about-graphql https://www.sanity.io/docs/front-ends/what-about-graphql