Relative Content

Tag Archive for pythonfirebasegoogle-cloud-platformgoogle-cloud-firestoregoogle-cloud-functions

Importing FieldPath into a Cloud Function

I am doing this from google.cloud import firestore_v1 as ft and using ft.FieldPath. This, however, gives me an error AttributeError: module 'google.cloud.firestore_v1' has no attribute 'FieldPath' . I’ve tried taking out the ‘v1’ part and many other things. Please guide me as to why it’s not working. I have the google-cloud-firestore in my requirements.txt file too.