/* tslint:disable */
/* eslint-disable */
// this is an auto generated file. This will be overwritten

import * as APITypes from '../API';
type GeneratedMutation<InputType, OutputType> = string & {
  __generatedMutationInput: InputType;
  __generatedMutationOutput: OutputType;
};

export const createPrimary = /* GraphQL */ `mutation CreatePrimary(
  $input: CreatePrimaryInput!
  $condition: ModelPrimaryConditionInput
) {
  createPrimary(input: $input, condition: $condition) {
    id
    secret
    owner
    relatedMany {
      items {
        id
        secret
        owner
        primaryId
        primary {
          id
          secret
          owner
          __typename
        }
        __typename
      }
      nextToken
      __typename
    }
    relatedOne {
      id
      secret
      owner
      primaryId
      primary {
        id
        secret
        owner
        relatedMany {
          nextToken
          __typename
        }
        relatedOne {
          id
          secret
          owner
          primaryId
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
` as GeneratedMutation<APITypes.CreatePrimaryMutationVariables, APITypes.CreatePrimaryMutation>;
export const updatePrimary = /* GraphQL */ `mutation UpdatePrimary(
  $input: UpdatePrimaryInput!
  $condition: ModelPrimaryConditionInput
) {
  updatePrimary(input: $input, condition: $condition) {
    id
    secret
    owner
    relatedMany {
      items {
        id
        secret
        owner
        primaryId
        primary {
          id
          secret
          owner
          __typename
        }
        __typename
      }
      nextToken
      __typename
    }
    relatedOne {
      id
      secret
      owner
      primaryId
      primary {
        id
        secret
        owner
        relatedMany {
          nextToken
          __typename
        }
        relatedOne {
          id
          secret
          owner
          primaryId
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
` as GeneratedMutation<APITypes.UpdatePrimaryMutationVariables, APITypes.UpdatePrimaryMutation>;
export const deletePrimary = /* GraphQL */ `mutation DeletePrimary(
  $input: DeletePrimaryInput!
  $condition: ModelPrimaryConditionInput
) {
  deletePrimary(input: $input, condition: $condition) {
    id
    secret
    owner
    relatedMany {
      items {
        id
        secret
        owner
        primaryId
        primary {
          id
          secret
          owner
          __typename
        }
        __typename
      }
      nextToken
      __typename
    }
    relatedOne {
      id
      secret
      owner
      primaryId
      primary {
        id
        secret
        owner
        relatedMany {
          nextToken
          __typename
        }
        relatedOne {
          id
          secret
          owner
          primaryId
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
` as GeneratedMutation<APITypes.DeletePrimaryMutationVariables, APITypes.DeletePrimaryMutation>;
export const createRelatedMany = /* GraphQL */ `mutation CreateRelatedMany(
  $input: CreateRelatedManyInput!
  $condition: ModelRelatedManyConditionInput
) {
  createRelatedMany(input: $input, condition: $condition) {
    id
    secret
    owner
    primaryId
    primary {
      id
      secret
      owner
      relatedMany {
        items {
          id
          secret
          owner
          primaryId
          __typename
        }
        nextToken
        __typename
      }
      relatedOne {
        id
        secret
        owner
        primaryId
        primary {
          id
          secret
          owner
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
` as GeneratedMutation<APITypes.CreateRelatedManyMutationVariables, APITypes.CreateRelatedManyMutation>;
export const updateRelatedMany = /* GraphQL */ `mutation UpdateRelatedMany(
  $input: UpdateRelatedManyInput!
  $condition: ModelRelatedManyConditionInput
) {
  updateRelatedMany(input: $input, condition: $condition) {
    id
    secret
    owner
    primaryId
    primary {
      id
      secret
      owner
      relatedMany {
        items {
          id
          secret
          owner
          primaryId
          __typename
        }
        nextToken
        __typename
      }
      relatedOne {
        id
        secret
        owner
        primaryId
        primary {
          id
          secret
          owner
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
` as GeneratedMutation<APITypes.UpdateRelatedManyMutationVariables, APITypes.UpdateRelatedManyMutation>;
export const deleteRelatedMany = /* GraphQL */ `mutation DeleteRelatedMany(
  $input: DeleteRelatedManyInput!
  $condition: ModelRelatedManyConditionInput
) {
  deleteRelatedMany(input: $input, condition: $condition) {
    id
    secret
    owner
    primaryId
    primary {
      id
      secret
      owner
      relatedMany {
        items {
          id
          secret
          owner
          primaryId
          __typename
        }
        nextToken
        __typename
      }
      relatedOne {
        id
        secret
        owner
        primaryId
        primary {
          id
          secret
          owner
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
` as GeneratedMutation<APITypes.DeleteRelatedManyMutationVariables, APITypes.DeleteRelatedManyMutation>;
export const createRelatedOne = /* GraphQL */ `mutation CreateRelatedOne(
  $input: CreateRelatedOneInput!
  $condition: ModelRelatedOneConditionInput
) {
  createRelatedOne(input: $input, condition: $condition) {
    id
    secret
    owner
    primaryId
    primary {
      id
      secret
      owner
      relatedMany {
        items {
          id
          secret
          owner
          primaryId
          __typename
        }
        nextToken
        __typename
      }
      relatedOne {
        id
        secret
        owner
        primaryId
        primary {
          id
          secret
          owner
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
` as GeneratedMutation<APITypes.CreateRelatedOneMutationVariables, APITypes.CreateRelatedOneMutation>;
export const updateRelatedOne = /* GraphQL */ `mutation UpdateRelatedOne(
  $input: UpdateRelatedOneInput!
  $condition: ModelRelatedOneConditionInput
) {
  updateRelatedOne(input: $input, condition: $condition) {
    id
    secret
    owner
    primaryId
    primary {
      id
      secret
      owner
      relatedMany {
        items {
          id
          secret
          owner
          primaryId
          __typename
        }
        nextToken
        __typename
      }
      relatedOne {
        id
        secret
        owner
        primaryId
        primary {
          id
          secret
          owner
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
` as GeneratedMutation<APITypes.UpdateRelatedOneMutationVariables, APITypes.UpdateRelatedOneMutation>;
export const deleteRelatedOne = /* GraphQL */ `mutation DeleteRelatedOne(
  $input: DeleteRelatedOneInput!
  $condition: ModelRelatedOneConditionInput
) {
  deleteRelatedOne(input: $input, condition: $condition) {
    id
    secret
    owner
    primaryId
    primary {
      id
      secret
      owner
      relatedMany {
        items {
          id
          secret
          owner
          primaryId
          __typename
        }
        nextToken
        __typename
      }
      relatedOne {
        id
        secret
        owner
        primaryId
        primary {
          id
          secret
          owner
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
` as GeneratedMutation<APITypes.DeleteRelatedOneMutationVariables, APITypes.DeleteRelatedOneMutation>;
