# neomodel | Neo4j Contrib | Knowledge Base | Instagit

An Object Graph Mapper (OGM) for the Neo4j graph database.

GitHub Stars: 1.1k

Repository: https://github.com/neo4j-contrib/neomodel

---

## Articles

### [How to Use Custom Validators with Property Inflate/Deflate in Neomodel](/neo4j-contrib/neomodel/how-to-use-custom-validators-with-property-inflate-deflate)

Learn to use custom validators with neomodel property inflate and deflate. Leverage the @validator decorator for seamless error handling and efficient data transformation in your Neo4j application.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use Relationship Managers and Relationship Definitions in neomodel](/neo4j-contrib/neomodel/how-to-use-relationship-managers-and-definitions)

Learn to use neomodel relationship managers and definitions to define graph edges enforce constraints and query relationships with connect disconnect and all methods

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use Semi-Structured Nodes with Flexible Schemas in neomodel](/neo4j-contrib/neomodel/how-to-use-semi-structured-nodes-with-flexible-schemas)

Learn to use SemiStructuredNode in neomodel for flexible schemas. Store arbitrary properties alongside declared fields while maintaining type safety for core attributes. Explore this powerful feature today.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Configure Slow Query Logging in Neomodel: A Complete Guide](/neo4j-contrib/neomodel/how-to-configure-slow-query-logging)

Configure slow query logging in Neomodel to identify performance bottlenecks. Set the threshold using get_config() or the NEOMODEL_SLOW_QUERIES environment variable. Optimize your Neo4j queries now.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use the Traversal API for Graph Traversals in neomodel](/neo4j-contrib/neomodel/how-to-use-the-traversal-api-for-graph-traversals)

Master neomodel graph traversals using the Traversal API. Build multi-hop Cypher queries efficiently with relationship paths and Path objects for powerful data exploration.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Handle Timezone-Aware Datetime Properties in Neomodel](/neo4j-contrib/neomodel/how-to-handle-timezone-aware-datetime-properties)

Master timezone-aware datetime properties in Neomodel. Learn to use DateTimeProperty, DateTimeNeo4jFormatProperty, and DateTimeFormatProperty for seamless UTC conversion or native timezone handling.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use JSONProperty for Storing Nested JSON Data in neomodel](/neo4j-contrib/neomodel/how-to-use-jsonproperty-for-storing-nested-json-data)

Learn how to use JSONProperty in neomodel to effectively store nested JSON data in Neo4j. Serialize and deserialize Python dictionaries and lists seamlessly.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use ArrayProperty in Neomodel for Storing Lists of Values](/neo4j-contrib/neomodel/how-to-use-arrayproperty-for-storing-lists)

Learn how to use Neomodel ArrayProperty to store lists of values in Neo4j. This guide covers scalar values, typed objects, indexing, and validation for efficient data management.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Create Unique Indexes and Constraints on Properties in neomodel](/neo4j-contrib/neomodel/how-to-create-unique-indexes-and-constraints-on-properties)

Learn to create unique indexes and constraints on properties in neomodel. Effortlessly enforce data uniqueness in your Neo4j database with simple Python code.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use Spatial Properties with Neo4j Point Types in Neomodel](/neo4j-contrib/neomodel/how-to-use-spatial-properties-with-neo4j-point-types)

Learn to use spatial properties with Neo4j Point types in Neomodel. Effortlessly store, validate, and query Cartesian and WGS84 points using the PointProperty class.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Integrate neomodel with Django Using django_neomodel: A Complete Guide](/neo4j-contrib/neomodel/how-to-integrate-neomodel-with-django)

Integrate neomodel with Django using django_neomodel. Learn to configure Neo4j and create graph-aware models for Django-style queries and signals. Get the complete guide.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Build Complex Queries Using Q Objects and Match Filtering in Neomodel](/neo4j-contrib/neomodel/how-to-build-complex-queries-using-q-objects)

Master Neomodel Q objects and match filtering to build complex Cypher WHERE clauses. Learn to construct boolean predicates with AND OR NOT for powerful Neo4j queries.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Choose Between Async and Sync Neomodel APIs: A Complete Guide](/neo4j-contrib/neomodel/how-to-choose-between-async-and-sync-neomodel-apis)

Learn when to use neomodel sync vs async APIs. Pick sync for Flask/Django apps and async for high-concurrency FastAPI services for optimal performance.

- Tags: best-practices
- Published: 2026-03-08

### [How to Create Relationships with Different Cardinality Types in Neomodel](/neo4j-contrib/neomodel/how-to-create-relationships-with-different-cardinality-types)

Master Neomodel relationships with our guide on cardinality types ZeroOrOne, One, ZeroOrMore, and OneOrMore. Learn to define precise connection limits for your Neo4j graph.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use Soft Cardinality Checks for Relationship Validation in Neomodel](/neo4j-contrib/neomodel/how-to-use-soft-cardinality-checks-for-relationship-validation)

Learn how to use soft cardinality checks in Neomodel to log warnings instead of errors for relationship violations. Debug and migrate data smoothly without breaking transactions.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Enable and Use Cypher Query Debugging in neomodel](/neo4j-contrib/neomodel/how-to-enable-and-use-cypher-query-debugging)

Learn how to enable and use Cypher query debugging in neomodel by setting environment variables or programmatically. Improve your Python Neo4j query development.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Configure Connection Pool Size and Timeout Settings in neomodel](/neo4j-contrib/neomodel/how-to-configure-connection-pool-size-and-timeout-settings)

Learn to configure neomodel connection pool size and timeout settings using environment variables or programmatically for optimal Neo4j performance. Optimize your database connections today.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use Pre-Save and Post-Delete Hooks on a StructuredNode in Neomodel](/neo4j-contrib/neomodel/how-to-use-pre-save-and-post-delete-hooks-on-structurednode)

Learn how to use pre-save and post-delete hooks on Neomodel StructuredNode. Discover how the @hooks decorator simplifies persisting data in Neo4j.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Handle Transactions with Neo4j in neomodel: Sync, Async, and Best Practices](/neo4j-contrib/neomodel/how-to-handle-transactions-with-neo4j-in-neomodel)

Master Neo4j transactions in neomodel. Learn to handle sync and async operations with TransactionProxy and context managers for seamless commits and rollbacks.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use Fulltext Indexes for Text Search in Neomodel: A Complete Guide](/neo4j-contrib/neomodel/how-to-use-fulltext-indexes-for-text-search-in-neomodel)

Master fulltext indexes for text search in Neomodel. Learn to declare FulltextIndex, install labels, and query effectively with FulltextFilter for robust text search capabilities.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Use Vector Indexes for Semantic Search in Neomodel](/neo4j-contrib/neomodel/how-to-use-vector-indexes-for-semantic-search-in-neomodel)

Learn how Neomodel uses vector indexes for semantic search. Combine VectorIndex metadata and VectorFilter for powerful Cypher clauses via the query builder.

- Tags: how-to-guide
- Published: 2026-03-08

### [How to Configure neomodel with a Custom Neo4j Driver Instance](/neo4j-contrib/neomodel/how-to-configure-neomodel-with-custom-neo4j-driver-instance)

Learn how to configure neomodel with a custom Neo4j driver instance. Easily set up your driver by passing it to NeomodelConfig or assigning it to neomodel.config.DRIVER for your Neo4j projects.

- Tags: how-to-guide
- Published: 2026-03-08

