Is there a way to access graphql endpoint from rest api class using java?

Hi All,

I have neo4j with graphql plugin installed. Is there a way to create and execute query with static void main class?