{"action":"created","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/103","repository_url":"https://api.github.com/repos/aws-amplify/amplify-cli","labels_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/103/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/103/events","html_url":"https://github.com/aws-amplify/amplify-cli/issues/103","id":356621183,"node_id":"MDU6SXNzdWUzNTY2MjExODM=","number":103,"title":"appsync api schema.json does not update","user":{"login":"ChhorvornBradley","id":6243534,"node_id":"MDQ6VXNlcjYyNDM1MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6243534?v=4","gravatar_id":"","url":"https://api.github.com/users/ChhorvornBradley","html_url":"https://github.com/ChhorvornBradley","followers_url":"https://api.github.com/users/ChhorvornBradley/followers","following_url":"https://api.github.com/users/ChhorvornBradley/following{/other_user}","gists_url":"https://api.github.com/users/ChhorvornBradley/gists{/gist_id}","starred_url":"https://api.github.com/users/ChhorvornBradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChhorvornBradley/subscriptions","organizations_url":"https://api.github.com/users/ChhorvornBradley/orgs","repos_url":"https://api.github.com/users/ChhorvornBradley/repos","events_url":"https://api.github.com/users/ChhorvornBradley/events{/privacy}","received_events_url":"https://api.github.com/users/ChhorvornBradley/received_events","type":"User","site_admin":false},"labels":[{"id":1037297658,"node_id":"MDU6TGFiZWwxMDM3Mjk3NjU4","url":"https://api.github.com/repos/aws-amplify/amplify-cli/labels/code-gen","name":"code-gen","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":5,"created_at":"2018-09-04T01:04:46Z","updated_at":"2018-12-24T04:06:51Z","closed_at":"2018-09-06T19:08:41Z","author_association":"NONE","body":"**Do you want to request a feature or report a bug?**\r\nthis is a bug\r\n\r\n**What is the current behavior?**\r\n\r\nstart a graphql appsync from the default\r\n(use the blogs, comments, etc)\r\n`ampfily push`\r\neverything looks good\r\nchange the `schema.graphql`\r\nto \r\n\r\n```\r\ntype Story @model @searchable {\r\n\tid: ID!\r\n\tdescription: String!\r\n\ttext: String!\r\n\tpoints: Int\r\n\tvotes: [Vote] @connection(name: \"StoryVotes\")\r\n}\r\n\r\ntype Vote @model {\r\n\tuser: String!\r\n\tstoryPoints: Int!\r\n\tstory: Story @connection(name: \"StoryVotes\")\r\n}\r\n```\r\n\r\nand save and `amplify push` and `*/amplify/backend/api/AppName/schema.json` file remains the same\r\n\r\nnow create a graphql schema file in the app (I'm in angular so I have placed this in assets)\r\n```\r\nmutation Vote{\r\n  createVote(input: { user:\"bradley!\", storyPoints:13, \r\n    voteStoryId:\"3bc7a14e-ee44-4cd7-8b17-fc164081836c\"})\r\n  {\r\n    storyPoints\r\n    user\r\n  \r\n    story{\r\n      description\r\n      text\r\n      id\r\n    }\r\n  }\r\n}\r\n\r\nquery Stories{\r\n  listStorys{\r\n    items{\r\n      id\r\n      text\r\n      description\r\n      votes{\r\n        items{\r\n          user\r\n          storyPoints\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nrun `amplify codegen generate`\r\nand it fails looking for the blog stuff\r\n\r\n```\r\namplify codegen generate                       \r\n⠋ Generating..././assets/schema.graphql: Cannot query field \"createVote\" on type \"Mutation\". Did you mean \"createPost\", \"createBlog\", or \"createComment\"?\r\n..././assets/schema.graphql: Cannot query field \"listStorys\" on type \"Query\". Did you mean \"listBlogs\" or \"listPosts\"?\r\n/home/ec2-user/.nvm/versions/node/v8.11.4/lib/node_modules/@aws-amplify/cli/node_modules/gluegun/build/index.js:13\r\n```\r\n\r\nall occurrences of 'listBlogs' in the system\r\n```\r\n/src/amplify/#current-cloud-backend/api/****/schema.json:\r\n\t40:           \"name\" : \"listBlogs\",\r\n\r\n/src/amplify/backend/api/*****/schema.json:\r\n\t40:           \"name\" : \"listBlogs\",\r\n```\r\n\r\n`amplify api update` does nothing to remedy this, nor does `amplify push`, nor does `amplify api gql-compile`\r\n\r\n(I also noted, that while I removed the Blog tables and the like, and CF removed those tables, those datasources remained in my appsync instance)\r\n\r\n**Steps to reproduce the issue:**\r\n\r\n1. see above\r\n\r\n**What is the expected behavior?**\r\nI expect the backend and the 'current backend' to actually show what has been been posted by appsync and allow me to `amplify codegen generate`\r\n\r\nhttps://aws-amplify.github.io/amplify-js/media/api_guide#type-generation-using-graphql-schemas\r\nwould be really nice if this works.\r\n\r\n**Additional environment details**\r\nrunning this in AWS Cloud9\r\n\r\n* **OS version (ie Windows 10 build X, macOS Sierra 10.12.6, etc.)**  AWS Cloud9* **Output of ``amplify --version``**: 0.1.16\r\n* **Did this work in previous versions?**: ??\r\n"},"comment":{"url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/comments/449683559","html_url":"https://github.com/aws-amplify/amplify-cli/issues/103#issuecomment-449683559","issue_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/103","id":449683559,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTY4MzU1OQ==","user":{"login":"skc18","id":46097713,"node_id":"MDQ6VXNlcjQ2MDk3NzEz","avatar_url":"https://avatars1.githubusercontent.com/u/46097713?v=4","gravatar_id":"","url":"https://api.github.com/users/skc18","html_url":"https://github.com/skc18","followers_url":"https://api.github.com/users/skc18/followers","following_url":"https://api.github.com/users/skc18/following{/other_user}","gists_url":"https://api.github.com/users/skc18/gists{/gist_id}","starred_url":"https://api.github.com/users/skc18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skc18/subscriptions","organizations_url":"https://api.github.com/users/skc18/orgs","repos_url":"https://api.github.com/users/skc18/repos","events_url":"https://api.github.com/users/skc18/events{/privacy}","received_events_url":"https://api.github.com/users/skc18/received_events","type":"User","site_admin":false},"created_at":"2018-12-24T04:06:51Z","updated_at":"2018-12-24T04:06:51Z","author_association":"NONE","body":"@yuth I'm not able to find my .graphqlconfig.yml in the root. The project is in Desktop. Any idea? Thanks"}}
{"actor":{"display_login":"skc18"}}