CYPHER_LIST_BRANCHES = '\nMATCH (
t:Thread {thread_id: $thread_id, checkpoint_ns: $checkpoint_ns})\n -[:HAS_BRANCH]->(b:Branch)\nOPTIONAL MATCH (t)-[active:ACTIVE_BRANCH]->(b)\nOPTIONAL MATCH (b)-[:HEAD]->(head:Checkpoint
)\nRETURN b.branch_id as branch_id,\n b.name as name,\n b.created_at as created_at,\n b.fork_point_id as fork_point_id,\n active IS NOT NULL as is_active,\n head.checkpoint_id as head_checkpoint_id\nORDER BY b.created_at\n'