Skip to content

Client Directives

Pre-release
Pre-release
Compare
Choose a tag to compare
@chrissm79 chrissm79 released this 23 Apr 03:12
· 3486 commits to master since this release

You can now define client side directives in your schema files. Some helper methods/traits will be provided in the future that you can use to help resolve those directives.

Server Side

# Server Side - Defines a client directive that can be applied to fields
directive @cache(key: String) on FIELD

# ...
type Query {
  foo: String
}

Client Side

query Foo {
  foo @cache("client-cache-key")
}