{"action":"created","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2166","repository_url":"https://api.github.com/repos/aws-amplify/amplify-js","labels_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2166/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2166/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2166/events","html_url":"https://github.com/aws-amplify/amplify-js/issues/2166","id":383096187,"node_id":"MDU6SXNzdWUzODMwOTYxODc=","number":2166,"title":"Can I use Amplify Codegen on an existing schema?","user":{"login":"philiiiiiipp","id":1035746,"node_id":"MDQ6VXNlcjEwMzU3NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/1035746?v=4","gravatar_id":"","url":"https://api.github.com/users/philiiiiiipp","html_url":"https://github.com/philiiiiiipp","followers_url":"https://api.github.com/users/philiiiiiipp/followers","following_url":"https://api.github.com/users/philiiiiiipp/following{/other_user}","gists_url":"https://api.github.com/users/philiiiiiipp/gists{/gist_id}","starred_url":"https://api.github.com/users/philiiiiiipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philiiiiiipp/subscriptions","organizations_url":"https://api.github.com/users/philiiiiiipp/orgs","repos_url":"https://api.github.com/users/philiiiiiipp/repos","events_url":"https://api.github.com/users/philiiiiiipp/events{/privacy}","received_events_url":"https://api.github.com/users/philiiiiiipp/received_events","type":"User","site_admin":false},"labels":[{"id":880284979,"node_id":"MDU6TGFiZWw4ODAyODQ5Nzk=","url":"https://api.github.com/repos/aws-amplify/amplify-js/labels/CLI","name":"CLI","color":"f9d0c4","default":false},{"id":708993532,"node_id":"MDU6TGFiZWw3MDg5OTM1MzI=","url":"https://api.github.com/repos/aws-amplify/amplify-js/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T12:29:09Z","updated_at":"2018-11-21T19:23:49Z","closed_at":null,"author_association":"NONE","body":"** Which Category is your question related to? **\r\n[amplify codegen](https://aws-amplify.github.io/docs/cli/codegen)\r\n\r\n** What AWS Services are you utilizing? **\r\nAppSync\r\n\r\n** Provide additional details e.g. code snippets **\r\nI am wondering if it is possible to generate flowtypes based of an existing appsync graphql schema?\r\n\r\nThe project was not done using Amplify init. I was able to use aws-appsync-codegen in the past, but its not maintained any longer + does not have support for AWSDate etc.\r\n"},"comment":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/comments/440782087","html_url":"https://github.com/aws-amplify/amplify-js/issues/2166#issuecomment-440782087","issue_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/2166","id":440782087,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDc4MjA4Nw==","user":{"login":"yuth","id":511386,"node_id":"MDQ6VXNlcjUxMTM4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/511386?v=4","gravatar_id":"","url":"https://api.github.com/users/yuth","html_url":"https://github.com/yuth","followers_url":"https://api.github.com/users/yuth/followers","following_url":"https://api.github.com/users/yuth/following{/other_user}","gists_url":"https://api.github.com/users/yuth/gists{/gist_id}","starred_url":"https://api.github.com/users/yuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuth/subscriptions","organizations_url":"https://api.github.com/users/yuth/orgs","repos_url":"https://api.github.com/users/yuth/repos","events_url":"https://api.github.com/users/yuth/events{/privacy}","received_events_url":"https://api.github.com/users/yuth/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T19:23:49Z","updated_at":"2018-11-21T19:23:49Z","author_association":"CONTRIBUTOR","body":"Amplify does support adding [external Appsync API](https://aws-amplify.github.io/docs/cli/codegen#amplify-add-codegen-) by passing `--apiId <api-id>` to the `add` command. It still needs a project to be initialized to use it (even if you don't use it to publish).\r\n\r\nIf this doesn't fit your need, you could use [amplify-graphql-docs-generator](https://www.npmjs.com/package/amplify-graphql-docs-generator) and [amplify-graphql-types-generator](https://www.npmjs.com/package/amplify-graphql-types-generator), which amplif-cli uses internally. Both these packages have their own CLI (albeit limited) \r\n\r\nWe  still don't have support for `AWSDate`  in the codege. We have this feature request in our backlog."}}
{"actor":{"display_login":"yuth"}}