You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rjvelazco
changed the title
SDK: GraphQL Query Management and Merging Strategy
SDK: Unified GraphQL Query Management with Fragment Merging
Dec 17, 2024
Parent Issue
#30943
Overview of the Issue:
To enable a unified and flexible GraphQL querying system, we need to implement a method
client.gql
that:page
,content
, andnav
, requiring at least one._map
fields in the response to remove them from the output while maintaining their parsed values.This method will be critical for both developers using the SDK and for internal UVE operations, ensuring consistent and optimized GraphQL usage.
Task
Define the Base Query:
params
likeurl
and optional fields likelanguage
anddepth
.Implement the
client.gql
Method:page
,content
, andnav
queries.page
,content
, ornav
, is provided.Parse _map Fields:
_map
fields from the GraphQL response._map
values in the output data structure.Test the Method:
_map
fields are correctly parsed and removed from the response.Document the Method:
README.md
:_map
parsing behavior.Proposed Objective
Technical User Experience
Proposed Priority
Priority 2 - Important
Acceptance Criteria
client.gql
method correctly merges the base query with custom queries using GraphQL fragments.page,
content, or
nav` is provided._map
fields are parsed and removed from the response.{ data, params }
.README.md
provides clear guidance for usage and integration.Sub-Tasks & Estimates
client.gql
method.page
,content
, ornav
)._map
fields in the response.README.md
with usage examples and details.External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
POC: #30814
The text was updated successfully, but these errors were encountered: