You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,20 +116,6 @@ resource
116
116
.then(response=>console.log(response.data));
117
117
```
118
118
119
-
#### Options
120
-
121
-
All read methods take an optional `options` property, consisting of an object of additional options to pass. Each key/value pair in the object is translated into a query string parameter key/value pair:
122
-
123
-
```js
124
-
resource.all({
125
-
options: {
126
-
include:'comments',
127
-
},
128
-
});
129
-
130
-
// requests to widgets?include=comments
131
-
```
132
-
133
119
### Writing
134
120
135
121
#### create
@@ -170,6 +156,20 @@ Deletes the passed-in record. Only the `id` property is used, so you can pass ei
170
156
widgetResource.delete({ id:42 });
171
157
```
172
158
159
+
### Options
160
+
161
+
All methods that return records (so, all but `delete()`) take an optional `options` property, consisting of an object of additional options to pass. Each key/value pair in the object is translated into a query string parameter key/value pair:
0 commit comments