Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _firestore_doc(self, key):
"""Get document from firestore based on key"""
return db.conn.collection(utils.get_parent(key)).document(utils.get_id(key)).get()