Thanks both! Yeah, I can see that its possible to apply to “all queries”, but I think it would be useful to be able to control at at a query level, especially because Apollo already supports this.
So the more specific question is, how can we add the @cacheControl(maxAge: xx) directive to our graphql server, so it knows how to parse the schema.
I don’t really know enough about apollo/graphql just yet, but I’m guessing RW uses graphql-tools underneath to parse the schema?
Important note on compatibility: Setting cache hints is currently incompatible with the graphql-tools implementation of schema stitching, because cache hints are not appropriately communicated from one service to the other.