import * as Types from '../types.d' ; import { gql } from '@apollo/client' ; import * as Apollo from '@apollo/client' ; const defaultOptions = { } as const ; export type CreateReviewForEpisodeMutationVariables = Types . Exact < { episode : Types . Episode ; review : Types . ReviewInput ; } > ; export type CreateReviewForEpisodeMutation = { __typename ? : 'Mutation' ; createReview ? : { __typename ? : 'Review' ; stars : number ; commentary ? : string | null | undefined ; } | null | undefined ; } ; export const CreateReviewForEpisodeDocument = gql `
  mutation CreateReviewForEpisode($episode: Episode!, $review: ReviewInput!) {
    createReview(episode: $episode, review: $review) {
      stars
      commentary
    }
  }
` ; export type CreateReviewForEpisodeMutationFn = Apollo . MutationFunction < CreateReviewForEpisodeMutation , CreateReviewForEpisodeMutationVariables > ; param baseOptions example export function useCreateReviewForEpisodeMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < CreateReviewForEpisodeMutation , CreateReviewForEpisodeMutationVariables > ( CreateReviewForEpisodeDocument , options ) ; } export type CreateReviewForEpisodeMutationHookResult = ReturnType < typeof useCreateReviewForEpisodeMutation > ; export type CreateReviewForEpisodeMutationResult = Apollo . MutationResult < CreateReviewForEpisodeMutation > ; export type CreateReviewForEpisodeMutationOptions = Apollo . BaseMutationOptions < CreateReviewForEpisodeMutation , CreateReviewForEpisodeMutationVariables > ;