(cypher_string: str)
| 19 | # Query endpoint |
| 20 | @router.get('/q', response_model=Query, summary='Query the database with a custom Cypher string') |
| 21 | async def cypher_query(cypher_string: str): |
| 22 | with neo4j_driver.session() as session: |
| 23 | response = session.run(query=cypher_string) |
| 24 | return Query(response=response.data()) |