Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding QueryDocumentSnapshot. #95

Merged
merged 3 commits into from
Jan 2, 2018

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Jan 2, 2018

This is based on user feedback and changes the DocumentSnapshot API to return null for non-existing documents (instead of throwing an Exception). Since Queries never return null documents, this PR also introduces QueryDocumentSnapshot, which overrides the DocumentSnapshot methods to be non-nullable (mostly relevant for TypeScript).

This is a port of firebase/firebase-js-sdk#364

There are also some random documentation changes here and there that I noticed while looking at the generated documentation.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 2, 2018
@codecov
Copy link

codecov bot commented Jan 2, 2018

Codecov Report

Merging #95 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #95   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        1593   1601    +8     
=====================================
+ Hits         1593   1601    +8
Impacted Files Coverage Δ
src/reference.js 100% <ø> (ø) ⬆️
src/index.js 100% <ø> (ø) ⬆️
src/watch.js 100% <ø> (ø) ⬆️
src/document.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e43adf...999c62d. Read the comment docs.

@schmidt-sebastian schmidt-sebastian merged commit 3ff5565 into master Jan 2, 2018
@ghost ghost removed the cla: yes This human has signed the Contributor License Agreement. label Jan 2, 2018
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt-querydocumentsnapshot branch January 30, 2018 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants