{"action":"created","issue":{"url":"https://api.github.com/repos/marklogic/node-client-api/issues/204","labels_url":"https://api.github.com/repos/marklogic/node-client-api/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/marklogic/node-client-api/issues/204/comments","events_url":"https://api.github.com/repos/marklogic/node-client-api/issues/204/events","html_url":"https://github.com/marklogic/node-client-api/issues/204","id":107087700,"number":204,"title":"When using optimizeLevel parameter, sparqlUpdate is throwing an error \"Endpoint does not support query parameter\"","user":{"login":"ayuwono","id":7096668,"avatar_url":"https://avatars.githubusercontent.com/u/7096668?v=3","gravatar_id":"","url":"https://api.github.com/users/ayuwono","html_url":"https://github.com/ayuwono","followers_url":"https://api.github.com/users/ayuwono/followers","following_url":"https://api.github.com/users/ayuwono/following{/other_user}","gists_url":"https://api.github.com/users/ayuwono/gists{/gist_id}","starred_url":"https://api.github.com/users/ayuwono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayuwono/subscriptions","organizations_url":"https://api.github.com/users/ayuwono/orgs","repos_url":"https://api.github.com/users/ayuwono/repos","events_url":"https://api.github.com/users/ayuwono/events{/privacy}","received_events_url":"https://api.github.com/users/ayuwono/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marklogic/node-client-api/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/marklogic/node-client-api/labels/major","name":"major","color":"fbca04"},{"url":"https://api.github.com/repos/marklogic/node-client-api/labels/test","name":"test","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"ayuwono","id":7096668,"avatar_url":"https://avatars.githubusercontent.com/u/7096668?v=3","gravatar_id":"","url":"https://api.github.com/users/ayuwono","html_url":"https://github.com/ayuwono","followers_url":"https://api.github.com/users/ayuwono/followers","following_url":"https://api.github.com/users/ayuwono/following{/other_user}","gists_url":"https://api.github.com/users/ayuwono/gists{/gist_id}","starred_url":"https://api.github.com/users/ayuwono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayuwono/subscriptions","organizations_url":"https://api.github.com/users/ayuwono/orgs","repos_url":"https://api.github.com/users/ayuwono/repos","events_url":"https://api.github.com/users/ayuwono/events{/privacy}","received_events_url":"https://api.github.com/users/ayuwono/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/marklogic/node-client-api/milestones/7","html_url":"https://github.com/marklogic/node-client-api/milestones/8.0-4","labels_url":"https://api.github.com/repos/marklogic/node-client-api/milestones/7/labels","id":1108718,"number":7,"title":"8.0-4","description":"The Node.js API release supporting the 8.0-4 release of MarkLogic server","creator":{"login":"ehennum","id":1170070,"avatar_url":"https://avatars.githubusercontent.com/u/1170070?v=3","gravatar_id":"","url":"https://api.github.com/users/ehennum","html_url":"https://github.com/ehennum","followers_url":"https://api.github.com/users/ehennum/followers","following_url":"https://api.github.com/users/ehennum/following{/other_user}","gists_url":"https://api.github.com/users/ehennum/gists{/gist_id}","starred_url":"https://api.github.com/users/ehennum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehennum/subscriptions","organizations_url":"https://api.github.com/users/ehennum/orgs","repos_url":"https://api.github.com/users/ehennum/repos","events_url":"https://api.github.com/users/ehennum/events{/privacy}","received_events_url":"https://api.github.com/users/ehennum/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":17,"state":"open","created_at":"2015-05-13T14:44:42Z","updated_at":"2015-09-17T22:19:32Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-09-17T22:19:32Z","updated_at":"2015-09-17T22:27:42Z","closed_at":null,"body":"When using optimizeLevel parameter, sparqlUpdate is throwing an error \"Endpoint does not support query parameter\"\r\n\r\nI think it's related to issue #203 that just fixed\r\n\r\nvar myData = \"PREFIX bb: <http://marklogic.com/baseball/players#>\\n\" +\r\n\"INSERT DATA\\n\" +\r\n\"{\\n\" +\r\n\" GRAPH <http://marklogic.com/sparqlupdate/baseball>\" +\r\n\" {\\n\" +\r\n\" bb:345 bb:id 345 .\\n\" +\r\n\" }\\n\" +\r\n\"}\"\r\ndb.graphs.sparqlUpdate({\r\ndata: myData,\r\noptimizeLevel: 0\r\n}).\r\nresult(function(response){\r\n...\r\n\r\nError:\r\n{ [Error: SPARQL graph update: cannot process response with 400 status (on inline graphs)]\r\n  message: 'SPARQL graph update: cannot process response with 400 status (on inline graphs)',\r\n  statusCode: 400,\r\n  body:\r\n   { errorResponse:\r\n      { statusCode: 400,\r\n        status: 'Bad Request',\r\n        messageCode: 'REST-UNSUPPORTEDPARAM',\r\n        message: 'REST-UNSUPPORTEDPARAM: (err:FOER0000) Endpoint does not support query parameter: invalid parameters: optimizeLevel for request' } } }\r\n\r\nAccess log:\r\n127.0.0.1 - rest-writer [17/Sep/2015:14:36:53 -0700] \"POST /v1/graphs/sparql?using-named-graph-uri=true&optimizeLevel=0 HTTP/1.1\" 400 239 - -"},"comment":{"url":"https://api.github.com/repos/marklogic/node-client-api/issues/comments/141255039","html_url":"https://github.com/marklogic/node-client-api/issues/204#issuecomment-141255039","issue_url":"https://api.github.com/repos/marklogic/node-client-api/issues/204","id":141255039,"user":{"login":"ehennum","id":1170070,"avatar_url":"https://avatars.githubusercontent.com/u/1170070?v=3","gravatar_id":"","url":"https://api.github.com/users/ehennum","html_url":"https://github.com/ehennum","followers_url":"https://api.github.com/users/ehennum/followers","following_url":"https://api.github.com/users/ehennum/following{/other_user}","gists_url":"https://api.github.com/users/ehennum/gists{/gist_id}","starred_url":"https://api.github.com/users/ehennum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehennum/subscriptions","organizations_url":"https://api.github.com/users/ehennum/orgs","repos_url":"https://api.github.com/users/ehennum/repos","events_url":"https://api.github.com/users/ehennum/events{/privacy}","received_events_url":"https://api.github.com/users/ehennum/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T22:27:42Z","updated_at":"2015-09-17T22:27:42Z","body":"Another bad mapping from the Node.js parameter name and the URI parameter name.  Thanks for catching that. "}}