Skip to content

Commit 62dc5c7

Browse files
authored
note about enpoints camel case conversion
1 parent e46eb99 commit 62dc5c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/rtk-query/usage/code-generation.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ export type EndpointMatcherFunction = (
119119
#### Filtering endpoints
120120
121121
If you only want to include a few endpoints, you can use the `filterEndpoints` config option to filter your endpoints.
122+
Note that endpoints are <u>transformed</u> to camel case. For example, `login_user` will become `loginUser`.
123+
Camel case version is what you use in `filterEndpoints`.
122124
123125
```ts no-transpile title="openapi-config.ts"
124126
const filteredConfig: ConfigFile = {

0 commit comments

Comments
 (0)