Skip to content

Instantly share code, notes, and snippets.

@jbaxleyiii
Last active June 4, 2017 03:55
Show Gist options
  • Save jbaxleyiii/f8864023a4f568b7d167b176d469df81 to your computer and use it in GitHub Desktop.
Save jbaxleyiii/f8864023a4f568b7d167b176d469df81 to your computer and use it in GitHub Desktop.
Options diff
+ export type InputProps = {
+ episode: string,
+ };
+ export const withCharacter: OperationComponent<Response, InputProps> = graphql(HERO_QUERY, {
- export const withCharacter: OperationComponent<Response> = graphql(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