Hello, I am looking for an example on how to imple...
# graphql-kotlin
d
Hello, I am looking for an example on how to implement query directive. Documentation mentions two query directive
@skip
and
@include
and I am trying to implement
@skipCache
query directive. The idea is that if request/client annotates field with
@skipCache
the server will always recalculate the latest values (instead of using cached one).
d
👋
@skip
and
@include
are "special" built-in directives
d
Thank you Dariusz. That documentation is about Schema directives. Is there an example on how to do query directive (sometimes called operation directive)?
d
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/)