{"action":"closed","issue":{"url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/917","repository_url":"https://api.github.com/repos/firebase/firebase-js-sdk","labels_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/917/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/917/comments","events_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/917/events","html_url":"https://github.com/firebase/firebase-js-sdk/issues/917","id":331533642,"node_id":"MDU6SXNzdWUzMzE1MzM2NDI=","number":917,"title":"writeResult is undefined when trying to replicate example","user":{"login":"wzard","id":23156035,"node_id":"MDQ6VXNlcjIzMTU2MDM1","avatar_url":"https://avatars2.githubusercontent.com/u/23156035?v=4","gravatar_id":"","url":"https://api.github.com/users/wzard","html_url":"https://github.com/wzard","followers_url":"https://api.github.com/users/wzard/followers","following_url":"https://api.github.com/users/wzard/following{/other_user}","gists_url":"https://api.github.com/users/wzard/gists{/gist_id}","starred_url":"https://api.github.com/users/wzard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzard/subscriptions","organizations_url":"https://api.github.com/users/wzard/orgs","repos_url":"https://api.github.com/users/wzard/repos","events_url":"https://api.github.com/users/wzard/events{/privacy}","received_events_url":"https://api.github.com/users/wzard/received_events","type":"User","site_admin":false},"labels":[{"id":710626490,"node_id":"MDU6TGFiZWw3MTA2MjY0OTA=","url":"https://api.github.com/repos/firebase/firebase-js-sdk/labels/Component-Firestore","name":"Component-Firestore","color":"e881d1","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-12T10:42:40Z","updated_at":"2018-06-20T17:58:38Z","closed_at":"2018-06-20T17:58:38Z","author_association":"NONE","body":"I am using firestore in react. \r\nI am trying to replicate the example documentation. \r\nI am able to set the doc with the value provided but function is returning undefined on being fulfilled.\r\n\r\nThe below code which is taken from documentation [here](https://cloud.google.com/nodejs/docs/reference/firestore/0.14.x/WriteResult) is returning writeResult is undefined.\r\n\r\nI am able to successfully write the doc though. \r\nCan anyone check. \r\n\r\n```\r\nlet documentRef = firestore.doc('col/doc');\r\n\r\ndocumentRef.set({foo: 'bar'}).then(writeResult => {\r\n  console.log(`Document written at: ${writeResult.writeTime}`);\r\n});\r\n\r\n```\r\n"}}
{"actor":{"display_login":"mikelehen"}}