index.ts 510 Bytes
import { gql } from '@apollo/client';

// eslint-disable-next-line import/prefer-default-export
export const BUY_FRANCHISE_PLAYER = gql`
  mutation CreateFranchisePlayers(
    $franchiseId: String!
    $playerId: String!
    $rosterSpotIndex: Int!
  ) {
    createNflFranchisePlayer(
      data: {
        franchiseId: $franchiseId
        playerId: $playerId
        rosterSpotIndex: $rosterSpotIndex
      }
    ) {
      id
      playerId
      franchiseId
      rosterSpotIndex
      buyPrice
    }
  }
`;