I am trying to query all Documents where DocumentID begins with my string. My research tells me it's possible for field values by using '<=' in where(), but I have not found anything online that tells how to do this on Document ID fields.
I am doing this because my table contains Geohashes as DocumentIDs (high precision) with data, and I would like to get those documents on bases of low precision Geohash.
I also found this as a potential solution:
docs = mycolRef.where(firebase.firestore.FieldPath.documentId(), '>', somestring).stream();
However, this gives the error: "NameError: name 'firebase' is not defined"
I am importing firestore through google.cloud as mentioned in this guide: (https://cloud.google.com/firestore/docs/quickstart-servers)
from firebase import firestore
, or import firebase
resulted in errors.