{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3964","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3964/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3964/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3964/events","html_url":"https://github.com/orientechnologies/orientdb/issues/3964","id":69385300,"number":3964,"title":"Javascript function: can't find method OScriptGraphWrapper.query(string)","user":{"login":"red-0ne","id":231488,"avatar_url":"https://avatars.githubusercontent.com/u/231488?v=3","gravatar_id":"","url":"https://api.github.com/users/red-0ne","html_url":"https://github.com/red-0ne","followers_url":"https://api.github.com/users/red-0ne/followers","following_url":"https://api.github.com/users/red-0ne/following{/other_user}","gists_url":"https://api.github.com/users/red-0ne/gists{/gist_id}","starred_url":"https://api.github.com/users/red-0ne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/red-0ne/subscriptions","organizations_url":"https://api.github.com/users/red-0ne/orgs","repos_url":"https://api.github.com/users/red-0ne/repos","events_url":"https://api.github.com/users/red-0ne/events{/privacy}","received_events_url":"https://api.github.com/users/red-0ne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-04-19T05:08:44Z","updated_at":"2015-04-19T14:46:40Z","closed_at":"2015-04-19T12:29:59Z","body":"Executing a database function having this body\r\n```javascript\r\nvar db = orient.getGraph();\r\ndb.query('SELECT FROM V');\r\n```\r\nraises the following exception:\r\n```\r\nsun.org.mozilla.javascript.internal.EvaluatorException: Can't find method com.orientechnologies.orient.graph.script.OScriptGraphWrapper.query(string). (<Unknown source>#4) in <Unknown source> at line number 4\r\nCan't find method com.orientechnologies.orient.graph.script.OScriptGraphWrapper.query(string). (<Unknown source>#4)\r\n```"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/94284046","html_url":"https://github.com/orientechnologies/orientdb/issues/3964#issuecomment-94284046","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3964","id":94284046,"user":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T14:46:40Z","updated_at":"2015-04-19T14:46:40Z","body":"That's `orient.getDatabase().query()` but it's a different API. Examples with orient.getGraph() are correct."}}