[PR #78] [MERGED] Support operation name for mutations #91

Closed
opened 2026-03-03 00:03:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/atulmy/gql-query-builder/pull/78
Author: @themagickoala
Created: 11/30/2022
Status: Merged
Merged: 11/30/2022
Merged by: @atulmy

Base: masterHead: 72-allow-naming-mutations


📝 Commits (2)

  • 0d514f4 Support operation name for mutations
  • 0d3b38c Add mutation with operation name to readme

📊 Changes

4 files changed (+94 additions, -12 deletions)

View changed files

📝 README.md (+30 -3)
📝 src/adapters/DefaultMutationAdapter.ts (+27 -4)
📝 src/index.test.ts (+31 -0)
📝 src/index.ts (+6 -5)

📄 Description

This PR addresses issue #72 in order to allow passing an operationName to mutations (in the same way that is already possible for queries). I've also added a test for it in index.test.ts and updated the readme with example usage.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/atulmy/gql-query-builder/pull/78 **Author:** [@themagickoala](https://github.com/themagickoala) **Created:** 11/30/2022 **Status:** ✅ Merged **Merged:** 11/30/2022 **Merged by:** [@atulmy](https://github.com/atulmy) **Base:** `master` ← **Head:** `72-allow-naming-mutations` --- ### 📝 Commits (2) - [`0d514f4`](https://github.com/atulmy/gql-query-builder/commit/0d514f482f8dc3524b02cf7c2caeb081a0b54f2c) Support operation name for mutations - [`0d3b38c`](https://github.com/atulmy/gql-query-builder/commit/0d3b38c62d6c9148be6aea08333851df30cd214f) Add mutation with operation name to readme ### 📊 Changes **4 files changed** (+94 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+30 -3) 📝 `src/adapters/DefaultMutationAdapter.ts` (+27 -4) 📝 `src/index.test.ts` (+31 -0) 📝 `src/index.ts` (+6 -5) </details> ### 📄 Description This PR addresses issue #72 in order to allow passing an operationName to mutations (in the same way that is already possible for queries). I've also added a test for it in index.test.ts and updated the readme with example usage. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:03:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gql-query-builder#91
No description provided.