1.导出具体某个label
CALL apoc.export.graphml.query("MATCH (n:User) RETURN n","User_bak_20250725.graphml",{ readLabels: true, useTypes: true })
2.模拟删除所有的label
MATCH (n) DETACH DELETE n;
drop index idx_user_name;
3.恢复刚才导出的label数据
CALL apoc.import.graphml('User_bak_20250725.graphml', {batchSize:1000, readLabels:true});