0
votes

After running the graph for the first time with initial_cypher:"MATCH (tw)-[rel]->(ht) RETURN tw, ht, rel" It brings everything from the database but after some actions I want to filter it with

        neovis.renderWithCypher('MATCH (n)-[r]-(m) WHERE ANY(l IN labels(n) WHERE l IN $checkedObjects ) AND type(r) IN $checkedRelationships RETURN n,r,m',{checkedObjects:checkedObjects,checkedRelationships:checkedRelationships})

And am getting the error:

index.js:1 Neo4jError: Expected parameter(s): checkedObjects, checkedRelationships

Even tho I passed both parameters and also I tried to use .render() function, I did not get the error but the graph was not updating it seemed like it was loading for a split of a second then it came back with respect to the initial cypher not the one I passed as an argument

I am using:"react": "^18.2.0","neovis.js": "^1.4.0",