mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[PR #66] [MERGED] feat(fields): add support to multiple nested fields #88
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#88
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/66
Author: @JoaoPedroAS51
Created: 3/7/2022
Status: ✅ Merged
Merged: 3/7/2022
Merged by: @atulmy
Base:
master← Head:feat/multiple-nested-fields📝 Commits (1)
39f12c0feat(fields): add support to multiple nested fields📊 Changes
2 files changed (+48 additions, -7 deletions)
View changed files
📝
src/Utils.ts(+18 -6)📝
src/index.test.ts(+30 -1)📄 Description
Hi! First of all, thank you for your amazing package :)
When building the queries, I noticed that it was not possible to pass multiple nested fields in the same object.
I think that for simple queries, using the same object is cleaner than using one object per relationship.
Note that as far as I know these changes will not affect current behaviour, so no breaking changes.
Currently:
Add support to:
Both will output the same query:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.