mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[PR #33] [MERGED] Handle parameters on nested fields #154
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#154
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/33
Author: @cbonaudo
Created: 6/16/2020
Status: ✅ Merged
Merged: 6/20/2020
Merged by: @atulmy
Base:
master← Head:master📝 Commits (10+)
2964b88add tests2ca6e03add tests2060035update fields with variables1f3bd34add query variables0a73055add variables to query objectf454250update test36a8ce0Merge pull request #1 from cbonaudo/handle-nested-fields-w-variables35524acclean queryField013cc88extract queryDataNameArgs to Utils8d8b891clean field nested variables📊 Changes
5 files changed (+115 additions, -30 deletions)
View changed files
📝
src/Fields.ts(+3 -1)➕
src/NestedField.ts(+24 -0)📝
src/Utils.ts(+52 -9)📝
src/adapters/DefaultQueryAdapter.ts(+15 -20)📝
src/index.test.ts(+21 -0)📄 Description
fix #3
Hi, I have used this lib for a moment, and really like what it brings, and I fell upon a missing feature (that was brought up in your issue #3), adding variables to fields, like so :
I added a test case, and worked on the syntax that was provided on the issue :
It seems to work for me, the tests are ok, and it worked in a real app as a test. If this can be of interest, I'd love to have this added to the library.
I did try to clean up as much my additions, but feel free to tell me where I could ease the integration, and where could be some improvements or errors.
Thanks a lot !!!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.