Skip to content

Edge creation silently ignores CONTENT — all properties are NULL #4033

@babasaikiran

Description

@babasaikiran

Server Details:
Version: 26.4.2
Build: (build ef892b4/1776994711893/main)
Platform: Linux 6.8.0-107-generic - OpenJDK 64-Bit Server VM 21.0.10 (Temurin-21.0.10+7)

Expected behavior:
When creating an edge with CONTENT {"label": "test", "weight": 42}, the edge should store all provided properties.

Actual behavior:
The edge is created successfully (HTTP 200, valid @Rid returned, correct @in/@out graph structure), but all properties from the CONTENT block are NULL. No error or warning is returned.

The SET syntax works correctly as a workaround.

Steps to reproduce:

CREATE EDGE Edge FROM #1:0 TO #1:1 CONTENT {"label": "test_connection", "weight": 42, "color": "red"};
SELECT label, weight, color FROM Edge;
result:
"records": [
      {
        "label": null,
        "weight": null,
        "color": null
      }
    ]

Workaround:

CREATE EDGE BugEdge FROM #1:0 TO #2:0 SET `label` = 'test', `weight` = 42;

records:

"records": [
{"@rid":"#4:0","@type":"Edge","@cat":"e","@in":"#1:1","@out":"#1:0"},
{"@rid":"#4:1","@type":"Edge","@cat":"e","@in":"#1:1","@out":"#1:0","label":"test","weight":42}
]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions