Skip to content

Instantly share code, notes, and snippets.

@yusinto
Last active April 28, 2018 10:38
Show Gist options
  • Save yusinto/44be0c2447ceb723197e3a9bbf2894c9 to your computer and use it in GitHub Desktop.
Save yusinto/44be0c2447ceb723197e3a9bbf2894c9 to your computer and use it in GitHub Desktop.
Relay modern QueryRenderer snippet to demo schema stitching
<QueryRenderer
environment={relayEnvironment}
query={graphql`
query client_index_Query {
user {
email
name
favouritePlaces {
business { # look ma, remote schema field!
name
email
address
}
}
}
}
`}
// .... excluded for brevity
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment