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
Is it currently possible to encapsulate different data sources into the same subfield (e.g. subgraph below), and dynamically call them based on a passed in variable (e.g. $url below)?
For example, if I passed in "url": "https://example1.com/graphql", call the fields on example1.com endpoint, and if I passed in "url": "https://example2.com/graphql", call the fields on example2.com endpoint
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.
-
Is it currently possible to encapsulate different data sources into the same subfield (e.g.
subgraph
below), and dynamically call them based on a passed in variable (e.g.$url
below)?For example, if I passed in
"url": "https://example1.com/graphql"
, call the fields on example1.com endpoint, and if I passed in"url": "https://example2.com/graphql"
, call the fields on example2.com endpointEDIT: solved, Arda pointed me in the right direction here: https://discord.com/channels/625400653321076807/1089744757581938758/1089964552856293426
Beta Was this translation helpful? Give feedback.
All reactions