This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CALL apoc.meta.schema() YIELD value | |
| unwind keys(value) as key | |
| with key, value[key] as node | |
| with key, node where node.type = 'node' | |
| unwind keys(node.relationships) as relkey | |
| unwind node.relationships[relkey] as relation | |
| with { | |
| nodeLabel:key, | |
| properties: [x in keys(node.properties)], | |
| relationship:{ |