mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[PR #53] [MERGED] Add support for invoking mutations nested under other fields #163
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gql-query-builder#163
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/atulmy/gql-query-builder/pull/53
Author: @airhorns
Created: 12/4/2020
Status: ✅ Merged
Merged: 12/4/2020
Merged by: @atulmy
Base:
master← Head:nested-mutations📝 Commits (1)
ec36feaAdd support for invoking mutations nested under other fields📊 Changes
2 files changed (+98 additions, -23 deletions)
View changed files
📝
src/adapters/DefaultMutationAdapter.ts(+11 -23)📝
src/index.test.ts(+87 -0)📄 Description
Just like GraphQL queries can have operations at any level, so can mutations! This adds support that the
DefaultQueryAdapteralready has to theDefaultMutationAdapterfor executing mutations nested under other fields. See the tests for some examples.One more thing I could maybe do is factor out some of the shared code between the adapters into
Utils, but I wasn't really sure what is supposed to be shared vs not. Happy to change it up if you'd like @atulmy !🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.