Skip to content

Instantly share code, notes, and snippets.

@ties
Created March 13, 2019 20:13
Show Gist options
  • Save ties/a007fc284d2dadecdae2341c52161715 to your computer and use it in GitHub Desktop.
Save ties/a007fc284d2dadecdae2341c52161715 to your computer and use it in GitHub Desktop.
import { Mutation, MutationFn, MutationResult, Query } from "react-apollo";
import authenticationState from "./authentication-state.graphql";
import enrollMutation from "./enroll-mutation.graphql";
import {
authenticationState as authenticationStateType,
enrollmentStart as enrollmentStartType,
enrollMutation as enrollMutationType,
enrollMutationVariables,
} from "../graphql";
export class EnrollMutation extends Mutation<
enrollMutationType,
enrollMutationVariables
> {
public static defaultProps = { mutation: enrollMutation };
}
export class AuthenticationStateQuery extends Query<authenticationStateType> {
public static defaultProps = { query: authenticationState };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment