{"action":"closed","issue":{"url":"https://api.github.com/repos/apollographql/apollo-codegen/issues/367","repository_url":"https://api.github.com/repos/apollographql/apollo-codegen","labels_url":"https://api.github.com/repos/apollographql/apollo-codegen/issues/367/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-codegen/issues/367/comments","events_url":"https://api.github.com/repos/apollographql/apollo-codegen/issues/367/events","html_url":"https://github.com/apollographql/apollo-codegen/issues/367","id":291247173,"node_id":"MDU6SXNzdWUyOTEyNDcxNzM=","number":367,"title":"--add-typename not working when generating files (typescript)","user":{"login":"maierson","id":16655922,"node_id":"MDQ6VXNlcjE2NjU1OTIy","avatar_url":"https://avatars0.githubusercontent.com/u/16655922?v=4","gravatar_id":"","url":"https://api.github.com/users/maierson","html_url":"https://github.com/maierson","followers_url":"https://api.github.com/users/maierson/followers","following_url":"https://api.github.com/users/maierson/following{/other_user}","gists_url":"https://api.github.com/users/maierson/gists{/gist_id}","starred_url":"https://api.github.com/users/maierson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maierson/subscriptions","organizations_url":"https://api.github.com/users/maierson/orgs","repos_url":"https://api.github.com/users/maierson/repos","events_url":"https://api.github.com/users/maierson/events{/privacy}","received_events_url":"https://api.github.com/users/maierson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-24T15:21:03Z","updated_at":"2018-06-11T22:52:02Z","closed_at":"2018-06-11T22:52:01Z","author_association":"NONE","body":"When generating schema.ts the `--add-typename` argument is not recognized.\r\n\r\nFrom `apollo-codegen generate --help`\r\n```\r\n--add-typename                           For non-swift targets, always add the\r\n                                           __typename GraphQL introspection type\r\n                                           when generating target types\r\n                                                                [default: false]\r\n```\r\nGenerate command:\r\n\r\n```\r\napollo-codegen generate app/**/*.graphql --schema schema.json --target ts --output app/schema.ts --add-typename\r\n```\r\nIntended outcome: generates the interfaces with the `__typename` prop present on each one.\r\n\r\nActual outcome: Fails with output:\r\n\r\n```\r\nUnknown argument: add-typename\r\n```\r\n\r\nSame result with `--addTypename`.  Everything works ok without `--add-typename`.\r\n\r\nHow to reproduce: Run the generate command with the `--add-typename` argument."}}
{"actor":{"display_login":"shadaj"}}