Ask a question to get started
Enter to sendā¢Shift+Enter new line
CYPHER_THREAD_HAS_BRANCHES = '\nMATCH ( t:Thread {thread_id: $thread_id, checkpoint_ns: $checkpoint_ns})\nOPTIONAL MATCH (t)-[:HAS_BRANCH]->(b:Branch)\nRETURN t.thread_id as thread_id, count(b ) as branch_count\n'