(tx, doc_uuid, properties)
| 176 | return tx.run(query, properties).single()["d"] |
| 177 | |
| 178 | def add_page(tx, doc_uuid, properties): |
| 179 | query = ( |
| 180 | "MATCH (d:Document {Uuid: $doc_uuid}) " |
| 181 | "CREATE (p:Page {uuid: $uuid, name: $name, text: $text}) " |
| 182 | "MERGE (d)-[:HAS_PAGE]->(p) " |
| 183 | "RETURN p" |
| 184 | ) |
| 185 | return tx.run(query, {"doc_uuid": doc_uuid, **properties}).single()["p"] |
| 186 | |
| 187 | def add_chunk(tx, parent_uuid, properties): |
| 188 | query = ( |
nothing calls this directly
no outgoing calls
no test coverage detected