Skip to content

Instantly share code, notes, and snippets.

@lennyburdette
Created April 8, 2020 00:35
Show Gist options
  • Save lennyburdette/67c59869344ef23d5b70e1a84c0456a9 to your computer and use it in GitHub Desktop.
Save lennyburdette/67c59869344ef23d5b70e1a84c0456a9 to your computer and use it in GitHub Desktop.
Apollo Federation "Combine Data Stores" Query Plan
QueryPlan {
Sequence {
Fetch(service: "/sandbox/src/services/tweet-search.js") {
{
search(word: "everyday") {
id
__typename
}
}
},
Flatten(path: "search.@") {
Fetch(service: "/sandbox/src/services/tweets.js") {
{
... on Tweet {
__typename
id
}
} =>
{
... on Tweet {
body
createdAt
}
}
},
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment