-
Notifications
You must be signed in to change notification settings - Fork 475
Open
Labels
future 🔮An enhancement or feature proposal that will be addressed after the next releaseAn enhancement or feature proposal that will be addressed after the next release
Description
Summary
In our GraphQL Schema, we have the typical Query
and Mutation
types, but our root subscription type is named GqlSubscription
, because someone in the early stages of the GraphQL API design created their own Subscription
type that is unrelated to GraphQL subscriptions.
We want to not have to pass in the full introspection query to the cacheExchange
function, which is how the custom GqlSubscription
name would be determined.
Proposed Solution
Add a new, optional property to CacheExchangeOpts called rootFields
that allows specifying these name overrides
Update Store to observe the new rootFields
property, allowing it to still be overridden by schema
(if provided).
Requirements
Metadata
Metadata
Assignees
Labels
future 🔮An enhancement or feature proposal that will be addressed after the next releaseAn enhancement or feature proposal that will be addressed after the next release