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
The Aggregation Data Store needs to know what attributes and relationships are being fetched so that it can construct a complete JPQL query.
While this information is available today for JSON-API (via the request headers and the list of sparse fields for a given entity model), this capability does not exist for GraphQL.
Expected Behavior
A new field, requestedSubgraph will be set inside the requestScope each time loadObjects or getRelationship is called on the DataStoreTransaction.
This field will contains a nested map containing the entity relationship graph (entities, fields, and relationships to other entities) that is being requested starting at the current collection or entity that is being loaded.
Possible Solution
Both JSON-API and GraphQL will require changes:
JSON-API can construct this graph from the &include and &fields query parameters.
GraphQL can look at the SelectionSet passed in the DataFetchingEnvironment.
The Aggregation Data Store needs to know what attributes and relationships are being fetched so that it can construct a complete JPQL query.
While this information is available today for JSON-API (via the request headers and the list of sparse fields for a given entity model), this capability does not exist for GraphQL.
Expected Behavior
A new field, requestedSubgraph will be set inside the requestScope each time
loadObjects
orgetRelationship
is called on theDataStoreTransaction
.This field will contains a nested map containing the entity relationship graph (entities, fields, and relationships to other entities) that is being requested starting at the current collection or entity that is being loaded.
Possible Solution
Both JSON-API and GraphQL will require changes:
&include
and&fields
query parameters.SelectionSet
passed in theDataFetchingEnvironment
.Context
#804
The text was updated successfully, but these errors were encountered: