Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

(parameter) ???: Any "???" is not accessedPylance

(parameter) disease: Any
"disease" is not accessedPylance

(parameter) drug: Any
"drug" is not accessedPylance

{code: Neo.ClientError.Statement.ParameterMissing} {message: Expected parameter(s): disease, drug}

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

    def add_medicine(tx, disease, drug):
        tx.run("CREATE (m1:Medicine {disease: $disease}) "
            "CREATE (m2:Medicine {drug: $drug}) "
            "CREATE (m1)-[:TREAT]->(m2) "
            "RETURN m1, m2")
            
    with driver.session() as session:
        session.write_transaction(add_medicine,"Fever","Water")

>Solution :

tx.run(
   "CREATE (m1:Medicine {disease: $disease}) "
   "CREATE (m2:Medicine {drug: $drug}) "
   "CREATE (m1)-[:TREAT]->(m2) "
   "RETURN m1, m2",
   disease=disease, drug=drug)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading