graflo.db.tigergraph.document_utils¶
Document helpers for TigerGraph REST upsert and fetch operations.
clean_document(doc)
¶
Remove internal keys that shouldn't be stored in the database.
Removes keys starting with "_" except "_key".
Source code in graflo/db/tigergraph/document_utils.py
extract_id(doc, match_keys)
¶
Extract vertex ID from document based on match keys.
For composite keys, concatenates values with an underscore '_'. Prefers '_key' if present.