GraphQL, Cdn, Apollo Engine, Nodejs, API.
defaultMaxAge: 5, }, })); For a GraphQL type or field: type Post @cacheControl(maxAge: 240) { id: Int! title: String author: Author votes: Int @cacheControl(maxAge: 30) readByCurrentUser: Boolean! @cacheControl(scope: PRIVATE) } Or even for a single execution of a resolver: const resolvers = {