antvis / G6VP

G6VP is an online visual analysis tool for graphs and a low-code platform for building graph applications.

Home Page:https://insight.antv.antgroup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐛bug: render issue of neo4j schema

nylqd opened this issue · comments

current schema canvas do not have edges, maybe another data process problem?
image

expected as follow
image

https://github.com/antvis/G6VP/blob/master/packages/gi-sdk/src/components/EngineServer/LoadGraph.tsx#L148
because I have switched to the pref/sdk-valtio branch for the upgrade of G6 5.0, which involves a lot of changes, I haven't switched to the master branch to investigate the issue for now. If possible, I would appreciate your help in resolving it.

master/packages/gi-sdk/src/components/EngineServer/LoadGraph.tsx#L148 because I have switched to the pref/sdk-valtio branch for the upgrade of G6 5.0, which involves a lot of changes, I haven't switched to the master branch to investigate the issue for now. If possible, I would appreciate your help in resolving it.

@pomelo-nwu it seems indeed have bug in getSchemaGraph, i will do some digging around.
image

image

Adjusting the ID retrieval sequence to include source and target node types sounds like a reasonable approach to address the issue stemming from the lack of sourceNodeType and targetNodeType in the Neo4j schema information during parsing.

image

An alternative solution is adding sourceNodeType and targetNodeType attributes during the parsing of Neo4j schema information seems like a promising approach to address the root cause of the rendering issue.
image

@pomelo-nwu I'd like some inputs from you to choose one solution over the other

@nylqd Considering that different graph database will use the same EngineServer component, I am more inclined towards the second solution.