> For the complete documentation index, see [llms.txt](https://gchandra.gitbook.io/big-data-and-tools-with-nosql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gchandra.gitbook.io/big-data-and-tools-with-nosql/nosql/neo4j/examples/data-profiling.md).

# Data Profiling

```
// Count all nodes
MATCH (n)
RETURN count(n)

// Count all relationships
MATCH ()-->() RETURN count(*);

// Count all nodes
MATCH (n)
RETURN count(n)

// Display constraints and indexes
:schema

// List node labels
CALL db.labels()

// List relationship types
CALL db.relationshipTypes()

// What is related, and how
CALL db.schema.visualization()
```
