Hi good morning,
I am developing an application that updates my graph in real-time. I receive an invoice id that I have to update.
In my case, the invoice is a Relationship between two subjects.
I'm working Python development environment.
I can read the Report, but I cannot update it.
the Cypher query working perfectly
MATCH ()-[r:HAS_INVOICE {invoiceId: 40624}]->()
set r.updateField=True;
This is the python code
# tag::updateRelationship[]
def update_relationship(self, memento_invoice):
def upd_relationship(tx, id):
return tx.run(
"MATCH ()-[r:HAS_INVOICE {invoiceId: toInteger($invoice_id)}]->()"
"SET r.alreadyExisted=true;",{"invloice_id": id}
).consume
with self.driver.session() as session:
result = session.write_transaction(upd_relationship, id)
return result
# end::updateRelationship[]
Still receive the following error
data.py", line 340, in fix_parameters
raise TypeError("Parameters of type {} are not supported".format(type(value).__name__))
TypeError: Parameters of type builtin_function_or_method are not supported
Any suggestion or help please
Rinaldo