---
title: 'CHR0066: A node or an edge can only have primitive properties'
editUrl: https://github.com/Cratis/Chronicle/edit/main/Documentation/code-analysis/CHR0066.mdx
description: CHR0066 reports a property of a node or an edge in a graph projection that is an object.
lastUpdated: 2026-11-05T00:00:00.000Z
---


## Rule description

Nodes and edges in a property graph hold primitive values and arrays of primitive values. The rule reports a property or constructor parameter of a type marked with `[Node]` or `[Edge]` whose type is a class, record or struct that is not a primitive, a string, a date or time type, a `Guid`, an enum, a concept, or an array or list of those.

## Severity

Error

## How to fix

Model the object as its own node and connect it to the node it belongs to with an edge. Alternatively, flatten the object into primitive properties on the node or edge.

## Related topics

- [Graph projections](/chronicle/projections/graph-projections/)
