{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/apollo-server/issues/3194","repository_url":"https://api.github.com/repos/apollographql/apollo-server","labels_url":"https://api.github.com/repos/apollographql/apollo-server/issues/3194/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-server/issues/3194/comments","events_url":"https://api.github.com/repos/apollographql/apollo-server/issues/3194/events","html_url":"https://github.com/apollographql/apollo-server/issues/3194","id":484783645,"node_id":"MDU6SXNzdWU0ODQ3ODM2NDU=","number":3194,"title":"Apollo Federation/Gateway doesn't support Cache Control","user":{"login":"RichiCoder1","id":2391878,"node_id":"MDQ6VXNlcjIzOTE4Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/2391878?v=4","gravatar_id":"","url":"https://api.github.com/users/RichiCoder1","html_url":"https://github.com/RichiCoder1","followers_url":"https://api.github.com/users/RichiCoder1/followers","following_url":"https://api.github.com/users/RichiCoder1/following{/other_user}","gists_url":"https://api.github.com/users/RichiCoder1/gists{/gist_id}","starred_url":"https://api.github.com/users/RichiCoder1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichiCoder1/subscriptions","organizations_url":"https://api.github.com/users/RichiCoder1/orgs","repos_url":"https://api.github.com/users/RichiCoder1/repos","events_url":"https://api.github.com/users/RichiCoder1/events{/privacy}","received_events_url":"https://api.github.com/users/RichiCoder1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-24T06:08:40Z","updated_at":"2019-08-24T06:15:03Z","closed_at":null,"author_association":"NONE","body":"\r\nIt doesn't look like `@apollo/federation@0.9.0` and `@apollo/gateway@0.10.0` support `@cacheControl` directives or cache control hints.\r\n\r\nRelated: https://github.com/apollographql/apollo-server/issues/3181\r\n\r\n### Expected\r\n \r\nUsing static or dynamic cacheControl hints will result in cache-control http headers.\r\n\r\n### Actual\r\n\r\nNo headers are sent, and the hints are empty when `cacheControl: true` in `ApolloServer`.\r\n\r\n### Code Example:\r\n\r\n```js\r\nimport { gql } from 'apollo-server'\r\n\r\nconst typeDefs = gql`\r\n    type Test @key(fields: \"id\") @cacheControl(maxAge: 60, scope: PRIVATE) {\r\n        id: ID!\r\n     }\r\n`;\r\n\r\nexport { typeDefs }\r\n```\r\n\r\nError: `UnhandledPromiseRejectionWarning: GraphQLSchemaValidationError: Unknown directive \"cacheControl\".`"},"comment":{"url":"https://api.github.com/repos/apollographql/apollo-server/issues/comments/524524546","html_url":"https://github.com/apollographql/apollo-server/issues/3194#issuecomment-524524546","issue_url":"https://api.github.com/repos/apollographql/apollo-server/issues/3194","id":524524546,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNDUyNDU0Ng==","user":{"login":"RichiCoder1","id":2391878,"node_id":"MDQ6VXNlcjIzOTE4Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/2391878?v=4","gravatar_id":"","url":"https://api.github.com/users/RichiCoder1","html_url":"https://github.com/RichiCoder1","followers_url":"https://api.github.com/users/RichiCoder1/followers","following_url":"https://api.github.com/users/RichiCoder1/following{/other_user}","gists_url":"https://api.github.com/users/RichiCoder1/gists{/gist_id}","starred_url":"https://api.github.com/users/RichiCoder1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichiCoder1/subscriptions","organizations_url":"https://api.github.com/users/RichiCoder1/orgs","repos_url":"https://api.github.com/users/RichiCoder1/repos","events_url":"https://api.github.com/users/RichiCoder1/events{/privacy}","received_events_url":"https://api.github.com/users/RichiCoder1/received_events","type":"User","site_admin":false},"created_at":"2019-08-24T06:15:03Z","updated_at":"2019-08-24T06:15:03Z","author_association":"NONE","body":"I think a broad statement that could be made of this is that federation doesn't support *any* custom directives."}}
{"actor":{"display_login":"RichiCoder1"}}