Services
Neo4j Service
The Neo4jService handles operations related to Neo4j.
import asyncio
from t2g_sdk import T2GClient
async def main():
async with T2GClient() as client:
# Now you can access the Neo4jService via client.neo4j
# Example:
await client.neo4j.save_output_to_neo4j(file_path="path/to/output.cql")
pass
if __name__ == "__main__":
asyncio.run(main())The Neo4jService handles operations related to Neo4j and is accessed via the neo4j property of an active T2GClient instance.
save_output_to_neo4j
Saves the output of a job (in CQL format) to a Neo4j database.
async def save_output_to_neo4j(file_path: str)file_path: The path to the CQL file to save.