Skip to content

Mistake in firestore numeric increment example for python #2374

@fronbasal

Description

@fronbasal

In which file did you encounter the issue?

´python-docs-samples/firestore/cloud-client/snippets.py

Did you change the file? If so, how?

Line 884:

-washington_ref.update("population", firestore.Increment(50))
+washington_ref.update({"population": firestore.Increment(50)})

(the update parameters need to be passed as a dict)

Describe the issue

The original command raises an exception.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions