8000 #23 - Update Readme · Wikodit/js-data-jsonapi-light@d00f550 · GitHub
[go: up one dir, main page]

Skip to content

Commit d00f550

Browse files
committed
#23 - Update Readme
1 parent 5a39315 commit d00f550

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ store.findAll('User', {}, {
175175

176176
* Compatible with: `all`
177177

178-
#### `forceReplace: boolean`
178+
#### `forceReplace: boolean(false)`
179179

180180
On update, force all fields to be sent even if they haven't been changed.
181181
It will switch from default PATCH http verb to PUT.
@@ -185,6 +185,14 @@ Be careful, because it means, once the update made, the server will return saved
185185

186186
* Compatible with: `update`, `save`
187187

188+
#### `forceRelationshipsInAttributes: boolean(false)`
189+
190+
On update, force all relationships data to be sent using `attributes` structure instead of default `relationships` within the resource object.
191+
Note it is not JsonAPI compliant, it is a convenient option to support some specific backends.
192+
193+
* See #23
194+
* Compatible with: `update`, `save`
195+
188196
#### `beforeDeserialize`, `afterDeserialize`, `beforeSerialize`, `afterSerialize`
189197

190198
Deserialization and serialization hooks, see above.

0 commit comments

Comments
 (0)
0