Skip to content

Instantly share code, notes, and snippets.

View tullanders's full-sized avatar

Anders Bergkvist tullanders

View GitHub Profile
@tullanders
tullanders / gist:2e8c0d769d2f87cbb95e499baa0bfbc2
Created October 30, 2025 07:08
Simple cypher for a Neo4j Database Schema
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:{