{"action":"created","issue":{"url":"https://api.github.com/repos/yahoohung/loopback-graphql-server/issues/1","repository_url":"https://api.github.com/repos/yahoohung/loopback-graphql-server","labels_url":"https://api.github.com/repos/yahoohung/loopback-graphql-server/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/yahoohung/loopback-graphql-server/issues/1/comments","events_url":"https://api.github.com/repos/yahoohung/loopback-graphql-server/issues/1/events","html_url":"https://github.com/yahoohung/loopback-graphql-server/issues/1","id":258759910,"number":1,"title":"Error while configuring it","user":{"login":"prateekrastogi","id":14788991,"avatar_url":"https://avatars2.githubusercontent.com/u/14788991?v=4","gravatar_id":"","url":"https://api.github.com/users/prateekrastogi","html_url":"https://github.com/prateekrastogi","followers_url":"https://api.github.com/users/prateekrastogi/followers","following_url":"https://api.github.com/users/prateekrastogi/following{/other_user}","gists_url":"https://api.github.com/users/prateekrastogi/gists{/gist_id}","starred_url":"https://api.github.com/users/prateekrastogi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prateekrastogi/subscriptions","organizations_url":"https://api.github.com/users/prateekrastogi/orgs","repos_url":"https://api.github.com/users/prateekrastogi/repos","events_url":"https://api.github.com/users/prateekrastogi/events{/privacy}","received_events_url":"https://api.github.com/users/prateekrastogi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"yahoohung","id":3352735,"avatar_url":"https://avatars3.githubusercontent.com/u/3352735?v=4","gravatar_id":"","url":"https://api.github.com/users/yahoohung","html_url":"https://github.com/yahoohung","followers_url":"https://api.github.com/users/yahoohung/followers","following_url":"https://api.github.com/users/yahoohung/following{/other_user}","gists_url":"https://api.github.com/users/yahoohung/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoohung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoohung/subscriptions","organizations_url":"https://api.github.com/users/yahoohung/orgs","repos_url":"https://api.github.com/users/yahoohung/repos","events_url":"https://api.github.com/users/yahoohung/events{/privacy}","received_events_url":"https://api.github.com/users/yahoohung/received_events","type":"User","site_admin":false},"assignees":[{"login":"yahoohung","id":3352735,"avatar_url":"https://avatars3.githubusercontent.com/u/3352735?v=4","gravatar_id":"","url":"https://api.github.com/users/yahoohung","html_url":"https://github.com/yahoohung","followers_url":"https://api.github.com/users/yahoohung/followers","following_url":"https://api.github.com/users/yahoohung/following{/other_user}","gists_url":"https://api.github.com/users/yahoohung/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoohung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoohung/subscriptions","organizations_url":"https://api.github.com/users/yahoohung/orgs","repos_url":"https://api.github.com/users/yahoohung/repos","events_url":"https://api.github.com/users/yahoohung/events{/privacy}","received_events_url":"https://api.github.com/users/yahoohung/received_events","type":"User","site_admin":false}],"milestone":null,"comments":16,"created_at":"2017-09-19T09:46:30Z","updated_at":"2017-09-29T18:13:07Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI was trying to configure graphql server on my existing codebase, but i kept getting the error:\r\n throw new Error(message);\r\n    ^\r\n\r\nError: userCredentialQueries.userCredentialExists(id:) argument type must be Input Type but got: JSON.\r\n    at invariant (C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\node_modules\\graphql\\jsutils\\invariant.js:19:11)\r\n    at C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\node_modules\\graphql\\type\\definition.js:376:58\r\n    at Array.map (native)\r\n    at C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\node_modules\\graphql\\type\\definition.js:373:44\r\n    at Array.forEach (native)\r\n    at defineFieldMap (C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\node_modules\\graphql\\type\\definition.js:357:14)\r\n    at GraphQLObjectType.getFields (C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\node_modules\\graphql\\type\\definition.js:311:44)\r\n    at typeMapReducer (C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\node_modules\\graphql\\type\\schema.js:209:25)\r\n    at C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\node_modules\\graphql\\type\\schema.js:219:20\r\n    at Array.forEach (native)\r\n    at typeMapReducer (C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\node_modules\\graphql\\type\\schema.js:210:27)\r\n    at Array.reduce (native)\r\n    at new GraphQLSchema (C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\node_modules\\graphql\\type\\schema.js:98:34)\r\n    at getSchema (C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\src\\schema\\index.js:21:12)\r\n    at module.exports (C:\\Code\\consert\\backend\\node_modules\\loopback-graphql-server\\src\\boot.js:20:24)\r\n    at C:\\Code\\consert\\backend\\node_modules\\loopback-boot\\lib\\executor.js:445:5\r\n\r\nmy configuration was default:\r\n \"loopback-graphql-server\": {\r\n    \"path\": \"/graphql\",\r\n    \"graphiqlPath\": \"/graphiql\",\r\n    \"subscriptionServer\": {\r\n      \"disable\": true,\r\n      \"port\": 5000,\r\n      \"options\": {},\r\n      \"socketOptions\": {}\r\n    },\r\n    \"modelMutationGroups\": false,\r\n    \"modelQueryGroups\": true\r\n  }\r\n\r\nStrangely, when trying to do similar config with  loopback graphql relay package written by blueeastcode my graphql server is working fine, it's config is:\r\n\r\n \"loopback-graphql-relay\": {\r\n    \"path\": \"/graphql\",\r\n    \"graphiqlPath\": \"/graphiql\",\r\n    \"subscriptionServer\": {\r\n      \"disable\": false,\r\n      \"port\": 5000,\r\n      \"options\": {},\r\n      \"socketOptions\": {}\r\n    },\r\n    \"viewer\": {\r\n      \"AccessTokenModel\": \"accessToken\",\r\n      \"relation\": \"user\",\r\n      \"UserModel\": \"user\"\r\n    }\r\n  }\r\n\r\nAny, guesses regarding possible cause of errors? I am guessing it is due to this package being dependent on default models for its configuration.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yahoohung/loopback-graphql-server/issues/comments/333199274","html_url":"https://github.com/yahoohung/loopback-graphql-server/issues/1#issuecomment-333199274","issue_url":"https://api.github.com/repos/yahoohung/loopback-graphql-server/issues/1","id":333199274,"user":{"login":"yahoohung","id":3352735,"avatar_url":"https://avatars3.githubusercontent.com/u/3352735?v=4","gravatar_id":"","url":"https://api.github.com/users/yahoohung","html_url":"https://github.com/yahoohung","followers_url":"https://api.github.com/users/yahoohung/followers","following_url":"https://api.github.com/users/yahoohung/following{/other_user}","gists_url":"https://api.github.com/users/yahoohung/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoohung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoohung/subscriptions","organizations_url":"https://api.github.com/users/yahoohung/orgs","repos_url":"https://api.github.com/users/yahoohung/repos","events_url":"https://api.github.com/users/yahoohung/events{/privacy}","received_events_url":"https://api.github.com/users/yahoohung/received_events","type":"User","site_admin":false},"created_at":"2017-09-29T18:13:07Z","updated_at":"2017-09-29T18:13:07Z","author_association":"OWNER","body":"For the reason why I created a extra options for grouping query and mutation is because relay looks not support nested mutation schema. I tested on my own project and found some developers reported that can rin in graphql but not working in relay client so I have to provide a extra option for this."}}
{"actor":{"display_login":"yahoohung"}}