Skip to content

Commit 88d929e

Browse files
authored
Merge pull request #1638 from mungojam/patch-1
2 parents 26ef5fb + d3d909d commit 88d929e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rtk-query/usage/mutations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Mutations are used to send data updates to the server and apply the changes to t
1616

1717
## Defining Mutation Endpoints
1818

19-
Mutation endpoints are defined by returning an object inside the `endpoints` section of `createApi`, and defining the fields using the `builder.mutation()` method.
19+
Mutation endpoints are defined by returning an object inside the `endpoints` section of `createApi`, and defining the fields using the `build.mutation()` method.
2020

2121
Mutation endpoints should define either a `query` callback that constructs the URL (including any URL query params), or [a `queryFn` callback](./customizing-queries.mdx#customizing-queries-with-queryfn) that may do arbitrary async logic and return a result. The `query` callback may also return an object containing the URL, the HTTP method to use and a request body.
2222

0 commit comments

Comments
 (0)