Thank you Dariusz. That documentation is about Schema directives. Is there an example on how to do query directive (sometimes called operation directive)?
I am unsure whether you can easily create query directive as it has to be somehow understood by your client
gql java docs only cover schema directives as well (https://www.graphql-java.com/documentation/v17/)