apoc.meta.data.of

Procedure APOC Core

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

Signature

apoc.meta.data.of(graph :: ANY?, config = {} :: MAP?) :: (label :: STRING?, property :: STRING?, count :: INTEGER?, unique :: BOOLEAN?, index :: BOOLEAN?, existence :: BOOLEAN?, type :: STRING?, array :: BOOLEAN?, sample :: LIST? OF ANY?, left :: INTEGER?, right :: INTEGER?, other :: LIST? OF STRING?, otherLabels :: LIST? OF STRING?, elementType :: STRING?)

Input parameters

Name Type Default

graph

ANY?

null

config

MAP?

{}

Config Parameters

This procedure supports the following config parameters:

Table 1. Config parameters
Name Type Default Description

sample

Long

1000

Number of nodes to skip, e.g. a sample of 1000 will read every 1000th node.

Output parameters

Name Type

label

STRING?

property

STRING?

count

INTEGER?

unique

BOOLEAN?

index

BOOLEAN?

existence

BOOLEAN?

type

STRING?

array

BOOLEAN?

sample

LIST? OF ANY?

left

INTEGER?

right

INTEGER?

other

LIST? OF STRING?

otherLabels

LIST? OF STRING?

elementType

STRING?

Usage Examples

Type of supported input graphs

Type Description

String

a Cypher query

Virtual Graph

a Virtual Graph returned by apoc.graph.*

Map

a map with two field nodes (a list of nodes, mandatory), relationships (a list of relationships)

If you want more details you can look at apoc.meta.data documentation