Skip to content

Commit 4208cdd

Browse files
authored
Documentation Error Correction
A simple correction was made to the documentation to prevent coding errors and eliminate ambiguities.
1 parent 55a3c23 commit 4208cdd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

documentation/md/docs/Models/Creating-Nodes-and-Relationships.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ await Users.relateTo(
131131
},
132132
/* --> properties of the relationship to be created */
133133
properties: {
134-
rating: 4,
134+
/* --> use the key defined in the model and assign a value */
135+
Rating: 4,
135136
},
136137
/* --> (optional) throws an error if the created relationships are not equal to this number */
137138
assertCreatedRelationships: 2,
@@ -158,7 +159,8 @@ await user.relateTo(
158159
},
159160
/* --> properties of the relationship to be created */
160161
properties: {
161-
rating: 4,
162+
/* --> use the key defined in the model and assign a value */
163+
Rating: 4,
162164
},
163165
/* --> (optional) throws an error if the created relationships are not equal to this number */
164166
assertCreatedRelationships: 2,
@@ -168,4 +170,4 @@ await user.relateTo(
168170
);
169171
```
170172

171-
> :ToCPrevNext
173+
> :ToCPrevNext

0 commit comments

Comments
 (0)