From 62dc5c7c8dcdc70a2e64fd412410523e4ad29274 Mon Sep 17 00:00:00 2001 From: tombohub Date: Thu, 18 Apr 2024 08:06:49 -0400 Subject: [PATCH 1/3] note about enpoints camel case conversion --- docs/rtk-query/usage/code-generation.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/rtk-query/usage/code-generation.mdx b/docs/rtk-query/usage/code-generation.mdx index 4ee69e0d34..c7a47d61f6 100644 --- a/docs/rtk-query/usage/code-generation.mdx +++ b/docs/rtk-query/usage/code-generation.mdx @@ -119,6 +119,8 @@ export type EndpointMatcherFunction = ( #### Filtering endpoints If you only want to include a few endpoints, you can use the `filterEndpoints` config option to filter your endpoints. +Note that endpoints are transformed to camel case. For example, `login_user` will become `loginUser`. +Camel case version is what you use in `filterEndpoints`. ```ts no-transpile title="openapi-config.ts" const filteredConfig: ConfigFile = { From 571463da66d0f5511f9442bd6e806df5977f8014 Mon Sep 17 00:00:00 2001 From: tombohub Date: Thu, 18 Apr 2024 08:12:23 -0400 Subject: [PATCH 2/3] removed tag --- docs/rtk-query/usage/code-generation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rtk-query/usage/code-generation.mdx b/docs/rtk-query/usage/code-generation.mdx index c7a47d61f6..1b5f123ea3 100644 --- a/docs/rtk-query/usage/code-generation.mdx +++ b/docs/rtk-query/usage/code-generation.mdx @@ -119,7 +119,7 @@ export type EndpointMatcherFunction = ( #### Filtering endpoints If you only want to include a few endpoints, you can use the `filterEndpoints` config option to filter your endpoints. -Note that endpoints are transformed to camel case. For example, `login_user` will become `loginUser`. +Note that endpoints are transformed to camel case. For example, `login_user` will become `loginUser`. Camel case version is what you use in `filterEndpoints`. ```ts no-transpile title="openapi-config.ts" From f6e74c69f13e392796912b76837d02d18888a30c Mon Sep 17 00:00:00 2001 From: tombohub Date: Tue, 7 May 2024 11:59:16 -0400 Subject: [PATCH 3/3] Update docs/rtk-query/usage/code-generation.mdx Co-authored-by: Ben Durrant --- docs/rtk-query/usage/code-generation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rtk-query/usage/code-generation.mdx b/docs/rtk-query/usage/code-generation.mdx index 1b5f123ea3..31ec095875 100644 --- a/docs/rtk-query/usage/code-generation.mdx +++ b/docs/rtk-query/usage/code-generation.mdx @@ -120,7 +120,7 @@ export type EndpointMatcherFunction = ( If you only want to include a few endpoints, you can use the `filterEndpoints` config option to filter your endpoints. Note that endpoints are transformed to camel case. For example, `login_user` will become `loginUser`. -Camel case version is what you use in `filterEndpoints`. +`filterEndpoints` will be checked against this camel case version of the endpoint. ```ts no-transpile title="openapi-config.ts" const filteredConfig: ConfigFile = {