Created
March 13, 2019 20:13
-
-
Save ties/a007fc284d2dadecdae2341c52161715 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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