Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codegen: add operation name suffix #3812

Merged

Conversation

georgiev-anton
Copy link

Hello. I am added operationName suffix

Example "V2" suffix


getRelocationRequestListV2: build.mutation<GetRelocationRequestListV2ApiResponse, GetRelocationRequestListV2ApiArg>({
      query: (queryArg) => ({
        url: `/relocationRequests/list`,
        method: "POST",
        body: queryArg.body,
        params: { actual: queryArg.actual, page: queryArg.page, size: queryArg.size },
      }),
    }),

@codesandbox
Copy link

codesandbox bot commented Oct 19, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@netlify
Copy link

netlify bot commented Oct 19, 2023

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 6b1f11d
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/66d2404f5654c800080adae7
😎 Deploy Preview https://deploy-preview-3812--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 19, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6b1f11d:

Sandbox Source
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration
rtk-esm-cra Configuration

@smff
Copy link

smff commented Oct 20, 2023

Yep, it would be useful!

@markerikson markerikson force-pushed the feature/add_operation_name_suffix branch from 15d14b0 to 5bd39b0 Compare August 30, 2024 21:51
@markerikson markerikson merged commit 6bf212c into reduxjs:master Aug 30, 2024
16 checks passed
@markerikson
Copy link
Collaborator

Should be live in https://github.com/reduxjs/redux-toolkit/releases/tag/%40rtk-query%2Fcodegen-openapi%402.0.0-alpha.0 ! Please try it out and let us know if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants