github nuwave/lighthouse v2.1-beta.4
Client Directives

latest releases: v6.36.0, v6.35.0, v6.34.1...
pre-release6 years ago

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")
}

Don't miss a new lighthouse release

NewReleases is sending notifications on new releases.