MCPcopy Create free account
hub / github.com/clockworknowledge/menome_processor / add_page

Function add_page

app/routers/utils.py:178–185  ·  view source on GitHub ↗
(tx, doc_uuid, properties)

Source from the content-addressed store, hash-verified

176 return tx.run(query, properties).single()["d"]
177
178def 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
187def add_chunk(tx, parent_uuid, properties):
188 query = (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected