Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“updateWithCypher” showing blank while “renderWithCypher” works #380

Open
ruined404cjy opened this issue Jan 26, 2024 · 1 comment

Comments

@ruined404cjy
Copy link

ruined404cjy commented Jan 26, 2024

Expected Behavior (Mandatory)

Using “updateWithCypher” function with a valid new statement to update the visualization rather than replace it.

Actual Behavior (Mandatory)

When using "renderWithCypher", the visualization is replaced normally with new result, but when using “updateWithCypher”, the visualization goes blank( the cypher statement is validated to be able to get result ).

How to Reproduce the Problem

code:
    nodeClick (node) {
      this.viz._network.off('click')
      const statement ='MATCH (n)-[r]-(m) WHERE ID(n) = ' + node.nodeId + ' RETURN n, r, m'
      this.viz.renderWithCypher(statement)
    },

Simple Example

      var config = {
        container_id: 'viz', 
        server_url: 'neo4j://localhost:7687', 
        server_user: 'neo4j',
        server_password: '123456',
        labels: {
          "工序链": {
            caption: 'name',  
            font: { size: 15, color: '#606266' },
          },
          "工艺知识": {
            caption: 'name',  
            font: { size: 15, color: '#606266' },
           },
        },
        relationships: {
          "has_process": {
          },
          "next": {
          }
        },
        arrows: true,
        hierarchical: false, 
        hierarchical_sort_method: 'directed',
        encrypted: 'ENCRYPTION_OFF',
        trust: 'TRUST_ALL_CERTIFICATES',
        initial_cypher: 'MATCH (n)-[r]-(m) WHERE n.name = "粗车" RETURN n, r, m'
      }

Screenshots (where it's possibile)

Specifications (Mandatory)

Currently used versions

Versions

  • OS: Windows 10
  • Library: neovis 1.5.0
  • Neo4j: 4.4.0
@sierrazhan
Copy link

Hi!! I was wondering if there are any updates for this issue and if not do you have any recommendations for work arounds in the meantime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants