{"action":"closed","issue":{"url":"https://api.github.com/repos/arangodb/arangodb-php/issues/44","repository_url":"https://api.github.com/repos/arangodb/arangodb-php","labels_url":"https://api.github.com/repos/arangodb/arangodb-php/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb-php/issues/44/comments","events_url":"https://api.github.com/repos/arangodb/arangodb-php/issues/44/events","html_url":"https://github.com/arangodb/arangodb-php/issues/44","id":11305459,"number":44,"title":"Proposal: CollectionHandler->create() should also support an array or even only a string instead of only a collection object","user":{"login":"frankmayer","id":825497,"avatar_url":"https://avatars.githubusercontent.com/u/825497?v=3","gravatar_id":"","url":"https://api.github.com/users/frankmayer","html_url":"https://github.com/frankmayer","followers_url":"https://api.github.com/users/frankmayer/followers","following_url":"https://api.github.com/users/frankmayer/following{/other_user}","gists_url":"https://api.github.com/users/frankmayer/gists{/gist_id}","starred_url":"https://api.github.com/users/frankmayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankmayer/subscriptions","organizations_url":"https://api.github.com/users/frankmayer/orgs","repos_url":"https://api.github.com/users/frankmayer/repos","events_url":"https://api.github.com/users/frankmayer/events{/privacy}","received_events_url":"https://api.github.com/users/frankmayer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arangodb/arangodb-php/labels/discussion","name":"discussion","color":"d7e102"},{"url":"https://api.github.com/repos/arangodb/arangodb-php/labels/feature","name":"feature","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2013-02-22T21:03:33Z","updated_at":"2016-09-22T18:26:48Z","closed_at":"2016-09-22T18:26:48Z","body":"I'd like to implement it like:\r\n```\r\n$collectionHandler->create('myNewCollection');\r\n```\r\n\r\nWe could even implement a second optional parameter ```$options``` like the one that is available on other methods of the client, in order to pass options.\r\nLike: \r\n```\r\n$collectionHandler->create('myNewCollection', array('waitForSync'=>true));\r\n```\r\n\r\nIf https://github.com/triAGENS/ArangoDB/issues/423 would be implemented, we could also do:\r\n\r\n```\r\n$collectionHandler->create(array('name'=>'myNewCollection', 'somekey'=>'someValue'), array('waitForSync'=>true));\r\n\r\n```\r\n\r\nWhat do you think?"}}
{"actor":{"display_login":"frankmayer"}}