Skip to content

NodeModel API Reference

The NodeModel class is the base class for defining OGM (Object Graph Mapper) models. It provides Pydantic-based data validation and Neo4j integration.

Class Definition

NodeModel

NodeModel(**data)

Bases: Base

Base class for Neo4j node models

match classmethod

match(*filter_ops) -> Query

Match nodes using a query builder pattern with deferred execution.

create

create(database=None)

A full create on a node including relationships and target nodes.

merge

merge(database=None)

A full merge on a node including relationships and target nodes.

nodeset classmethod

nodeset()

Create a NodeSet from this Node.

dataset classmethod

dataset()