Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea36916

Browse files
georgejdanforthkoskimas
authored andcommitted
Fix incorrect method usage in patchAndFetch example
1 parent 5320714 commit ea36916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/query-builder/mutate-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ console.log(updatedPerson.firstName);
274274
## patchAndFetch()
275275

276276
```js
277-
queryBuilder = queryBuilder.patchAndFetchById(id, modelOrObject);
277+
queryBuilder = queryBuilder.patchAndFetch(modelOrObject);
278278
```
279279

280280
Just like [patchAndFetchById](/api/query-builder/mutate-methods.html#patchandfetchbyid) but can be used in an instance [\$query](/api/model/instance-methods.html#query) without the need to specify the id.

0 commit comments

Comments
 (0)