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
Hello everyone! Loving everything GraphQL Mesh provides, I think it's a project with massive potential.
Is it possible to configure an additionalResolver which would query a secondary data source, but provide multiple parameters to the secondary data source. For example:
The keysArg in this case in this case is just an example. I would like to extend the FeedItem type from the primary data source with the commentCount, the data for which would come from the SecondaryDataSource. The thing is, the secondary data source needs both a contentId and culture parameter. As far as I could see this isn't specified in the documentation.
An additional question (not sure it warrants an extra discussion) - is there a way I could get the culture parameter passed from the "parent query" to this one? I know it's possible to use for example root.culture, but that would be valid if the culture property was a part of the FeedItem. Let me know if I should create this as a separate discussion.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone! Loving everything GraphQL Mesh provides, I think it's a project with massive potential.
Is it possible to configure an additionalResolver which would query a secondary data source, but provide multiple parameters to the secondary data source. For example:
The
keysArg
in this case in this case is just an example. I would like to extend theFeedItem
type from the primary data source with thecommentCount
, the data for which would come from theSecondaryDataSource
. The thing is, the secondary data source needs both acontentId
andculture
parameter. As far as I could see this isn't specified in the documentation.An additional question (not sure it warrants an extra discussion) - is there a way I could get the culture parameter passed from the "parent query" to this one? I know it's possible to use for example
root.culture
, but that would be valid if theculture
property was a part of theFeedItem
. Let me know if I should create this as a separate discussion.Thanks in advance for your time!
Beta Was this translation helpful? Give feedback.
All reactions