python-mock-firestore icon indicating copy to clipboard operation
python-mock-firestore copied to clipboard

DocumentReference.create is not defined

Open LasseRegin opened this issue 4 years ago • 1 comments

It seems like the mocked DocumentReference do not have the create method described in the firestore documentation: https://googleapis.dev/python/firestore/latest/document.html#google.cloud.firestore_v1.document.DocumentReference.create

This results in errors like the following:

> doc_ref = collection.document(doc_id)
> doc_ref.create(doc)
E       AttributeError: 'DocumentReference' object has no attribute 'create'

LasseRegin avatar Apr 13 '21 07:04 LasseRegin

Experiencing the same issue.

ckanaar avatar Aug 01 '24 12:08 ckanaar