mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #87] Subscriptions nested fields/operations #54
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#54
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?
Originally created by @tsukeero on GitHub (Oct 10, 2023).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/87
Using the same query with nested operation on subscription throws an error (works with normal query):
Uppon quick look at the source it looks they use a different implementation of
queryFieldsMap.The
DefaultQueryAdapter.tsis usingUtils.queryFieldsMap(this.fields)While the
DefaultSubscriptionAdapteris usingthis.queryFieldsMap(this.fields)](https://github.com/atulmy/gql-query-builder/blob/master/src/adapters/DefaultSubscriptionAdapter.ts#L94C6-L94C40) (which is different and doesn't seem to have nested fields handled correct).Would the fix be a simple replacement to call the one from utils or is something else I am missing?