{"action":"created","issue":{"url":"https://api.github.com/repos/mickhansen/graphql-sequelize/issues/508","repository_url":"https://api.github.com/repos/mickhansen/graphql-sequelize","labels_url":"https://api.github.com/repos/mickhansen/graphql-sequelize/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/mickhansen/graphql-sequelize/issues/508/comments","events_url":"https://api.github.com/repos/mickhansen/graphql-sequelize/issues/508/events","html_url":"https://github.com/mickhansen/graphql-sequelize/issues/508","id":244419624,"number":508,"title":"5.4.0 breaks using SequelizeJSON in the where parameter","user":{"login":"mlocatelli-pge","id":24683982,"avatar_url":"https://avatars3.githubusercontent.com/u/24683982?v=4","gravatar_id":"","url":"https://api.github.com/users/mlocatelli-pge","html_url":"https://github.com/mlocatelli-pge","followers_url":"https://api.github.com/users/mlocatelli-pge/followers","following_url":"https://api.github.com/users/mlocatelli-pge/following{/other_user}","gists_url":"https://api.github.com/users/mlocatelli-pge/gists{/gist_id}","starred_url":"https://api.github.com/users/mlocatelli-pge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlocatelli-pge/subscriptions","organizations_url":"https://api.github.com/users/mlocatelli-pge/orgs","repos_url":"https://api.github.com/users/mlocatelli-pge/repos","events_url":"https://api.github.com/users/mlocatelli-pge/events{/privacy}","received_events_url":"https://api.github.com/users/mlocatelli-pge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-20T16:15:16Z","updated_at":"2017-07-22T20:41:21Z","closed_at":null,"body":"In 5.3.3, a query similar to the following works without any issue\r\n```\r\nquery ($offset: Int,\r\n       $limit: Int,\r\n       $order: String,\r\n       $whereClause: SequelizeJSON) {\r\n  asset: some_table (offset: $offset,\r\n                 limit: $limit,\r\n                 order: $order,\r\n                 where : $whereClause) {\r\n     someValue1\r\n     someValue2\r\n    }\r\n}\r\n```\r\nWhen using 5.4.0, I'm getting the following errors:\r\n1) When the $whereClause variable is an empty object {}\r\n`\"message\": \"Variable \\\"$whereClause\\\" got invalid value {}.\\nExpected type \\\"SequelizeJSON\\\", found {}: Unexpected token o in JSON at position 1\"`\r\n2) When the $whereClause variable has something in it\r\n`\"message\": \"Variable \\\"$whereClause\\\" got invalid value {\\\"someValue1\\\":{\\\"gte\\\":10,\\\"lte\\\":50}}.\\nExpected type \\\"SequelizeJSON\\\", found {\\\"someValue1\\\":{\\\"gte\\\":10,\\\"lte\\\":50}}: Unexpected token o in JSON at position 1\"`"},"comment":{"url":"https://api.github.com/repos/mickhansen/graphql-sequelize/issues/comments/317209080","html_url":"https://github.com/mickhansen/graphql-sequelize/issues/508#issuecomment-317209080","issue_url":"https://api.github.com/repos/mickhansen/graphql-sequelize/issues/508","id":317209080,"user":{"login":"Alexsey","id":6392013,"avatar_url":"https://avatars0.githubusercontent.com/u/6392013?v=4","gravatar_id":"","url":"https://api.github.com/users/Alexsey","html_url":"https://github.com/Alexsey","followers_url":"https://api.github.com/users/Alexsey/followers","following_url":"https://api.github.com/users/Alexsey/following{/other_user}","gists_url":"https://api.github.com/users/Alexsey/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexsey/subscriptions","organizations_url":"https://api.github.com/users/Alexsey/orgs","repos_url":"https://api.github.com/users/Alexsey/repos","events_url":"https://api.github.com/users/Alexsey/events{/privacy}","received_events_url":"https://api.github.com/users/Alexsey/received_events","type":"User","site_admin":false},"created_at":"2017-07-22T20:41:21Z","updated_at":"2017-07-22T20:41:21Z","body":"It will work if you provide a JSON string value of a SequelizeJSON parameter type. Could you provide a full code snippet that was working in 5.3.3 an been broken in 5.4.0?"}}
{"actor":{"display_login":"Alexsey"}}