Reputation: 561
Hi I download our db to csv, then import the data to neo4jDB through bulk import method: neo4j-admin import. It works, and data can be seen in neo4j browser. but we I typed 'call db.schema()', the schema is wrong.
it seems event Node became relationships in this query.
then I tried to call "call db.schema.nodeTypeProperties()" and "call db.schema.relTypeProperties()", it looks good, like this:
Also, if i tried to do some queries and expand relationships in neo4j browser it works.
So any body have any idea what happened? or any hints to debug this??
Upvotes: 0
Views: 530
Reputation: 1678
The db.schema()
procedure and its successor db.schema.visualization()
have their limitations (that look like bugs). The issue exists since about v3.0 and does not seem to be fixed anytime soon.
Instead, you can use apoc.meta.graph()
procedure from the APOC library. It works properly but not so fast.
Please see this to install APOC using Neo4j Desktop. If you're using standalone Community Edition, you need to:
plugins
directory inside your Neo4j installation. On Windows, unblock the file.neo4j.conf
file, enable loading APOC functions by inserting this line:
dbms.security.procedures.unrestricted=apoc.*
Upvotes: 2