Skip to content

Instantly share code, notes, and snippets.

@jbaxleyiii
Created July 19, 2017 03:04
Show Gist options
  • Save jbaxleyiii/30cb40c531a4000e6064f9099af23b85 to your computer and use it in GitHub Desktop.
Save jbaxleyiii/30cb40c531a4000e6064f9099af23b85 to your computer and use it in GitHub Desktop.
+ export type InputProps = {
+ episode: string,
+ };
+ export const withCharacter = graphql<Response, InputProps>(HERO_QUERY, {
- export const withCharacter = graphql<Response>(HERO_QUERY, {
+ options: ({ episode }) => ({
+ variables: { episode },
- options: () => ({
- variables: { episode: "JEDI" },
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment