Skip to content

CHR0066: A node or an edge can only have primitive properties

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.

Error

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.