Skip to content

Conversation

@schmidt-sebastian
Copy link
Contributor

To address https://stackoverflow.com/questions/43151022/cloud-functions-for-firebase-onwrite-timeout, this adds a toJSON method() in TransactionResult.

This also addresses Google-internal bug https://b.corp.google.com/issues/62262817 and allows transaction objects to be returned from GCF.


// Do not create public documentation. This is intended to make JSON serialization work but is otherwise unnecessary
// for end-users
toJSON(): any {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should really strive not to use "any". I think we can use "object" here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@schmidt-sebastian schmidt-sebastian merged commit d9e0ce9 into master Jul 25, 2017
@jshcrowthe jshcrowthe deleted the mrschmidt-tojson branch October 9, 2017 22:48
@firebase firebase locked and limited conversation to collaborators Oct 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants