{"action":"created","issue":{"url":"https://api.github.com/repos/nestjs/graphql/issues/51","repository_url":"https://api.github.com/repos/nestjs/graphql","labels_url":"https://api.github.com/repos/nestjs/graphql/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/nestjs/graphql/issues/51/comments","events_url":"https://api.github.com/repos/nestjs/graphql/issues/51/events","html_url":"https://github.com/nestjs/graphql/issues/51","id":356414595,"node_id":"MDU6SXNzdWUzNTY0MTQ1OTU=","number":51,"title":"Subscription endpoint is not defined","user":{"login":"cschroeter","id":1846056,"node_id":"MDQ6VXNlcjE4NDYwNTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1846056?v=4","gravatar_id":"","url":"https://api.github.com/users/cschroeter","html_url":"https://github.com/cschroeter","followers_url":"https://api.github.com/users/cschroeter/followers","following_url":"https://api.github.com/users/cschroeter/following{/other_user}","gists_url":"https://api.github.com/users/cschroeter/gists{/gist_id}","starred_url":"https://api.github.com/users/cschroeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschroeter/subscriptions","organizations_url":"https://api.github.com/users/cschroeter/orgs","repos_url":"https://api.github.com/users/cschroeter/repos","events_url":"https://api.github.com/users/cschroeter/events{/privacy}","received_events_url":"https://api.github.com/users/cschroeter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-03T08:57:01Z","updated_at":"2018-09-03T09:40:20Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n<!-- \r\nPlease search GitHub for a similar issue or PR before submitting.\r\nCheck one of the following options with \"x\" -->\r\n<pre><code>\r\n[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->\r\n[x] Bug report\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.\r\n</code></pre>\r\n\r\n## Current behavior\r\n<!-- Describe how the issue manifests. -->\r\n```json\r\n{\r\n  \"error\": \"Could not connect to websocket endpoint ws://localhost:3000/graphql. Please check if the endpoint url is correct.\"\r\n}\r\n```\r\n\r\n## Expected behavior\r\n<!-- Describe what the desired behavior would be. -->\r\nIt should subscribe to changes.\r\n\r\n\r\n## Minimal reproduction of the problem with instructions\r\n<!-- Please share a repo, a gist, or step-by-step instructions. -->\r\nCheckout `https://github.com/nestjs/nest/tree/master/sample/12-graphql-apollo`\r\nFire subscription query \r\n```graphql\r\nsubscription {catCreated {id name}}\r\n```\r\n\r\n## What is the motivation / use case for changing the behavior?\r\n<!-- Describe the motivation or the concrete use case. -->\r\nWell its a bug - so ^^\r\n\r\n## Environment\r\n\r\n<pre><code>\r\nNest version: latest\r\n<!-- Check whether this is still an issue in the most recent Nest version -->\r\n \r\nFor Tooling issues:\r\n- Node version: 9  <!-- run `node --version` -->\r\n- Platform Mac\r\n\r\n</code></pre>\r\n"},"comment":{"url":"https://api.github.com/repos/nestjs/graphql/issues/comments/418060235","html_url":"https://github.com/nestjs/graphql/issues/51#issuecomment-418060235","issue_url":"https://api.github.com/repos/nestjs/graphql/issues/51","id":418060235,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODA2MDIzNQ==","user":{"login":"stevefan1999","id":29133953,"node_id":"MDQ6VXNlcjI5MTMzOTUz","avatar_url":"https://avatars2.githubusercontent.com/u/29133953?v=4","gravatar_id":"","url":"https://api.github.com/users/stevefan1999","html_url":"https://github.com/stevefan1999","followers_url":"https://api.github.com/users/stevefan1999/followers","following_url":"https://api.github.com/users/stevefan1999/following{/other_user}","gists_url":"https://api.github.com/users/stevefan1999/gists{/gist_id}","starred_url":"https://api.github.com/users/stevefan1999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevefan1999/subscriptions","organizations_url":"https://api.github.com/users/stevefan1999/orgs","repos_url":"https://api.github.com/users/stevefan1999/repos","events_url":"https://api.github.com/users/stevefan1999/events{/privacy}","received_events_url":"https://api.github.com/users/stevefan1999/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T09:40:20Z","updated_at":"2018-09-03T09:40:20Z","author_association":"NONE","body":"Try also adding `subscriptions: true` to the config, it should work..."}}
{"actor":{"display_login":"stevefan1999"}}