Meta Graph

Returns a virtual graph that represents the labels and relationship-types available in your database and how they are connected.

apoc.meta.graph
Table 1. Procedures
Qualified Name Type

apoc.meta.graphSample

apoc.meta.graphSample() - examines the database statistics to build the meta graph, very fast, might report extra relationships

Procedure

apoc.meta.graph

apoc.meta.graph - examines the full graph to create the meta-graph

Procedure

apoc.meta.graph.of

`apoc.meta.graph.of({graph}, {config}) ` - examines a subset of the graph to provide a graph meta information

Procedure

apoc.meta.subGraph

apoc.meta.subGraph({labels:[labels],rels:[rel-types], excludes:[labels,rel-types]}) - examines a sample sub graph to create the meta-graph

Procedure

apoc.meta.data

`apoc.meta.data({config}) ` - examines a subset of the graph to provide a tabular meta information

Procedure

apoc.meta.schema

`apoc.meta.schema({config}) ` - examines a subset of the graph to provide a map-like meta information

Procedure

apoc.meta.stats

apoc.meta.stats yield labelCount, relTypeCount, propertyKeyCount, nodeCount, relCount, labels, relTypes, stats | returns the information stored in the transactional database statistics

Procedure

apoc.meta.nodeTypeProperties

apoc.meta.nodeTypeProperties()

Procedure

apoc.meta.relTypeProperties

apoc.meta.relTypeProperties()

Procedure

Table 2. Functions
Qualified Name Type

apoc.meta.cypher.type

apoc.meta.cypher.type(value) - type name of a value (INTEGER,FLOAT,STRING,BOOLEAN,RELATIONSHIP,NODE,PATH,NULL,MAP,LIST OF <TYPE>,POINT,DATE,DATE_TIME,LOCAL_TIME,LOCAL_DATE_TIME,TIME,DURATION)

Function

apoc.meta.cypher.isType

apoc.meta.cypher.isType(value,type) - returns a row if type name matches none if not (INTEGER,FLOAT,STRING,BOOLEAN,RELATIONSHIP,NODE,PATH,NULL,MAP,LIST OF <TYPE>,POINT,DATE,DATE_TIME,LOCAL_TIME,LOCAL_DATE_TIME,TIME,DURATION)

Function

apoc.meta.cypher.types

`apoc.meta.cypher.types(node-relationship-map) ` - returns a map of keys to types

Function

In the case of LIST you may have many results, depending on the content. In the event that all contents are of the same type, will you have the LIST OF <TYPE>, otherwise if the type is different, will you get LIST OF ANY

If no type was found, the function return name of the class.