[PR #63] [MERGED] Use variable name when generating mutations #161

Closed
opened 2026-03-15 11:39:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/atulmy/gql-query-builder/pull/63
Author: @platformjb
Created: 1/8/2022
Status: Merged
Merged: 1/8/2022
Merged by: @atulmy

Base: masterHead: mutation-variable-name


📝 Commits (1)

  • bf2805e Use variable name when generating mutations

📊 Changes

2 files changed (+43 additions, -11 deletions)

View changed files

📝 src/adapters/DefaultMutationAdapter.ts (+1 -11)
📝 src/index.test.ts (+42 -0)

📄 Description

This resolves #62 whereby the name option on variables is ignored when generating mutations.

This is useful when generating a batch of the same mutations, which each requiring different variable values.


🔄 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/63 **Author:** [@platformjb](https://github.com/platformjb) **Created:** 1/8/2022 **Status:** ✅ Merged **Merged:** 1/8/2022 **Merged by:** [@atulmy](https://github.com/atulmy) **Base:** `master` ← **Head:** `mutation-variable-name` --- ### 📝 Commits (1) - [`bf2805e`](https://github.com/atulmy/gql-query-builder/commit/bf2805eed605ae8c0193ac56bc47ff1cd3584344) Use variable `name` when generating mutations ### 📊 Changes **2 files changed** (+43 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/adapters/DefaultMutationAdapter.ts` (+1 -11) 📝 `src/index.test.ts` (+42 -0) </details> ### 📄 Description This resolves #62 whereby the `name` option on variables is ignored when generating mutations. This is useful when generating a batch of the same mutations, which each requiring different variable values. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 11:39:04 +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#161
No description provided.