{"action":"closed","issue":{"url":"https://api.github.com/repos/sajari/sajari-sdk-js/issues/10","repository_url":"https://api.github.com/repos/sajari/sajari-sdk-js","labels_url":"https://api.github.com/repos/sajari/sajari-sdk-js/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/sajari/sajari-sdk-js/issues/10/comments","events_url":"https://api.github.com/repos/sajari/sajari-sdk-js/issues/10/events","html_url":"https://github.com/sajari/sajari-sdk-js/issues/10","id":146178262,"number":10,"title":"Creating a query with string argument fails","user":{"login":"tbillington","id":2771466,"avatar_url":"https://avatars.githubusercontent.com/u/2771466?v=3","gravatar_id":"","url":"https://api.github.com/users/tbillington","html_url":"https://github.com/tbillington","followers_url":"https://api.github.com/users/tbillington/followers","following_url":"https://api.github.com/users/tbillington/following{/other_user}","gists_url":"https://api.github.com/users/tbillington/gists{/gist_id}","starred_url":"https://api.github.com/users/tbillington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbillington/subscriptions","organizations_url":"https://api.github.com/users/tbillington/orgs","repos_url":"https://api.github.com/users/tbillington/repos","events_url":"https://api.github.com/users/tbillington/events{/privacy}","received_events_url":"https://api.github.com/users/tbillington/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sajari/sajari-sdk-js/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-06T03:41:28Z","updated_at":"2016-04-06T04:26:11Z","closed_at":"2016-04-06T04:26:11Z","body":"Creating a query object from api.query fails when a string is used as an argument.\r\n\r\n`query = api.query(\"foo\");`\r\n\r\nThis does not immediately fail, but causes errors when functions are called on the query object, such as filter, or maxresults."}}