File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
documentation/md/docs/Models Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,8 @@ await Users.relateTo(
131
131
},
132
132
/* --> properties of the relationship to be created */
133
133
properties: {
134
- rating: 4 ,
134
+ /* --> use the key defined in the model and assign a value */
135
+ Rating: 4 ,
135
136
},
136
137
/* --> (optional) throws an error if the created relationships are not equal to this number */
137
138
assertCreatedRelationships: 2 ,
@@ -158,7 +159,8 @@ await user.relateTo(
158
159
},
159
160
/* --> properties of the relationship to be created */
160
161
properties: {
161
- rating: 4 ,
162
+ /* --> use the key defined in the model and assign a value */
163
+ Rating: 4 ,
162
164
},
163
165
/* --> (optional) throws an error if the created relationships are not equal to this number */
164
166
assertCreatedRelationships: 2 ,
@@ -168,4 +170,4 @@ await user.relateTo(
168
170
);
169
171
```
170
172
171
- > : ToCPrevNext
173
+ > : ToCPrevNext
You can’t perform that action at this time.
0 commit comments