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

DocumentReference.create is not defined #41

Open
LasseRegin opened this issue Apr 13, 2021 · 1 comment
Open

DocumentReference.create is not defined #41

LasseRegin opened this issue Apr 13, 2021 · 1 comment

Comments

@LasseRegin
Copy link

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'
@ckanaar
Copy link

ckanaar commented Aug 1, 2024

Experiencing the same issue.

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

No branches or pull requests

2 participants