Skip to content

Commit d3028ba

Browse files
committed
Update README Quick Start with natural createEdge syntax
- Add comment explaining natural reading: 'job POSTED_BY company' - Demonstrates relationship type in middle position
1 parent a780079 commit d3028ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const company = db.createNode('Company', {
4141
industry: 'SaaS'
4242
});
4343

44-
// Create relationship
45-
db.createEdge('POSTED_BY', job.id, company.id);
44+
// Create relationship (natural syntax: job POSTED_BY company)
45+
db.createEdge(job.id, 'POSTED_BY', company.id);
4646

4747
// Query with fluent API
4848
const activeJobs = db.nodes('Job')

0 commit comments

Comments
 (0)