{"action":"created","issue":{"url":"https://api.github.com/repos/gdg-tangier/vue-firestore/issues/20","repository_url":"https://api.github.com/repos/gdg-tangier/vue-firestore","labels_url":"https://api.github.com/repos/gdg-tangier/vue-firestore/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/gdg-tangier/vue-firestore/issues/20/comments","events_url":"https://api.github.com/repos/gdg-tangier/vue-firestore/issues/20/events","html_url":"https://github.com/gdg-tangier/vue-firestore/issues/20","id":328730987,"node_id":"MDU6SXNzdWUzMjg3MzA5ODc=","number":20,"title":"Select type of collection","user":{"login":"asankulov","id":25876088,"node_id":"MDQ6VXNlcjI1ODc2MDg4","avatar_url":"https://avatars3.githubusercontent.com/u/25876088?v=4","gravatar_id":"","url":"https://api.github.com/users/asankulov","html_url":"https://github.com/asankulov","followers_url":"https://api.github.com/users/asankulov/followers","following_url":"https://api.github.com/users/asankulov/following{/other_user}","gists_url":"https://api.github.com/users/asankulov/gists{/gist_id}","starred_url":"https://api.github.com/users/asankulov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asankulov/subscriptions","organizations_url":"https://api.github.com/users/asankulov/orgs","repos_url":"https://api.github.com/users/asankulov/repos","events_url":"https://api.github.com/users/asankulov/events{/privacy}","received_events_url":"https://api.github.com/users/asankulov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-02T09:53:54Z","updated_at":"2018-06-05T03:09:44Z","closed_at":null,"author_association":"NONE","body":"Is it possible to make selectable type of collection like array or object. Example from [VueFire](https://github.com/vuejs/vuefire) is below:\r\n```var firebaseApp = firebase.initializeApp({ ... })\r\nvar db = firebaseApp.database()\r\n\r\nvar vm = new Vue({\r\n  el: '#demo',\r\n  firebase: {\r\n    // simple syntax, bind as an array by default\r\n    anArray: db.ref('url/to/my/collection'),\r\n    // can also bind to a query\r\n    // anArray: db.ref('url/to/my/collection').limitToLast(25)\r\n    // full syntax\r\n    anObject: {\r\n      source: db.ref('url/to/my/object'),\r\n      // optionally bind as an object\r\n      asObject: true,\r\n      // optionally provide the cancelCallback\r\n      cancelCallback: function () {},\r\n      // this is called once the data has been retrieved from firebase\r\n      readyCallback: function () {}\r\n    }\r\n  }\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/gdg-tangier/vue-firestore/issues/comments/394567112","html_url":"https://github.com/gdg-tangier/vue-firestore/issues/20#issuecomment-394567112","issue_url":"https://api.github.com/repos/gdg-tangier/vue-firestore/issues/20","id":394567112,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDU2NzExMg==","user":{"login":"asankulov","id":25876088,"node_id":"MDQ6VXNlcjI1ODc2MDg4","avatar_url":"https://avatars3.githubusercontent.com/u/25876088?v=4","gravatar_id":"","url":"https://api.github.com/users/asankulov","html_url":"https://github.com/asankulov","followers_url":"https://api.github.com/users/asankulov/followers","following_url":"https://api.github.com/users/asankulov/following{/other_user}","gists_url":"https://api.github.com/users/asankulov/gists{/gist_id}","starred_url":"https://api.github.com/users/asankulov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asankulov/subscriptions","organizations_url":"https://api.github.com/users/asankulov/orgs","repos_url":"https://api.github.com/users/asankulov/repos","events_url":"https://api.github.com/users/asankulov/events{/privacy}","received_events_url":"https://api.github.com/users/asankulov/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T03:09:44Z","updated_at":"2018-06-05T03:09:44Z","author_association":"NONE","body":"Ok but I meant not single document I mean full collection. Like ```{'dx3fe4cdef54xsz970': \r\n{model: 'BMW'},\r\n'cr773qcr366crf244fc': \r\n{model: 'Nissan'}\r\n}"}}
{"actor":{"display_login":"asankulov"}}