{"action":"opened","issue":{"url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/849","repository_url":"https://api.github.com/repos/firebase/firebase-js-sdk","labels_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/849/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/849/comments","events_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/849/events","html_url":"https://github.com/firebase/firebase-js-sdk/issues/849","id":324629789,"number":849,"title":"query using collection.limit() fails - limit remains set to null","user":{"login":"andyfusniak","id":21123937,"avatar_url":"https://avatars1.githubusercontent.com/u/21123937?v=4","gravatar_id":"","url":"https://api.github.com/users/andyfusniak","html_url":"https://github.com/andyfusniak","followers_url":"https://api.github.com/users/andyfusniak/followers","following_url":"https://api.github.com/users/andyfusniak/following{/other_user}","gists_url":"https://api.github.com/users/andyfusniak/gists{/gist_id}","starred_url":"https://api.github.com/users/andyfusniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyfusniak/subscriptions","organizations_url":"https://api.github.com/users/andyfusniak/orgs","repos_url":"https://api.github.com/users/andyfusniak/repos","events_url":"https://api.github.com/users/andyfusniak/events{/privacy}","received_events_url":"https://api.github.com/users/andyfusniak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-19T13:29:26Z","updated_at":"2018-05-19T13:29:26Z","closed_at":null,"author_association":"NONE","body":"\r\n  * Operating System version: Mac OS 10.11.6 using Node v8.11.1 with Vue.js webpack project\r\n\r\n  * Firebase SDK version:\r\n```json\r\n\"dependencies\": {\r\n    \"@firebase/app\": \"^0.3.2\",\r\n    \"@firebase/auth\": \"^0.5.2\",\r\n    \"@firebase/firestore\": \"^0.5.3\"\r\n  }\r\n```\r\n  * Firebase Product: firestore\r\n\r\n### [REQUIRED] Describe the problem\r\n\r\nInvoking the .limit() method on a collection fails to set the limit. Instead the entire collection is returned.\r\n\r\n#### Steps to reproduce:\r\n\r\nCreate a collection in a Firestore and add 4 items. Set up a limit query using Node.js Client using similar code shown below.\r\n\r\n#### Relevant Code:\r\n```javascript\r\ntry {\r\n      let colRef = firebase.firestore().collection('stuff');\r\n\r\n      colRef.limit(2);\r\n\r\n      let querySnapshot = await colRef.get(); // _query.limit = null so returns the entire collection\r\n```\r\n<!-- \r\n  Reproduce the issue on StackBlitz and provide your forked URL\r\n  or give us some sample code below\r\n-->\r\nhttps://stackblitz.com/edit/firebase-issue-sandbox-zw5mmw\r\n"}}
{"actor":{"display_login":"andyfusniak"}}