Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The field NBAPlayer.latestFixtureStats is deprecated. use latestFixtureStats #628

Open
dirtyhenry opened this issue Oct 22, 2024 · 0 comments

Comments

@dirtyhenry
Copy link

I am using a query to fetch NBA players scores gameweek per gameweek:

latestFixtureStats is marked as being deprecated, with the following confusing error message:

The field NBAPlayer.latestFixtureStats is deprecated. use latestFixtureStats

What should I update this field to? 🤔

The full query is:

query FetchNBACards($afterCursor: String, $pageSize: Int!) {
  currentUser {
    cards(after: $afterCursor, first: $pageSize, sport: NBA) {
      nodes {
        serialNumber
        rarityTyped
        pictureUrl
        seasonYear
        ... on NBACard {
          powerBreakdown {
            season
            collection
            xp
          }
          basketballPlayer {
            slug
            displayName
            age
            anyPositions
            latestFixtureStats(last: 10) {
              fixture {
                gameWeek
                startDate
                endDate
              }
              score
              status {
                upcomingGames {
                  homeTeam {
                    fullName
                  }
                  awayTeam {
                    fullName
                  }
                }
                gameStats {
                  score
                  playedInGame
                  detailedStats {
                    points
                    rebounds
                    assists
                    blocks
                    steals
                    turnovers
                    made3PointFGs
                    doubleDoubles
                    tripleDoubles
                  }
                }
              }
            }
            activeClub {
              name
            }
            averageScore(type: LAST_TEN_PLAYED_SO5_AVERAGE_SCORE)
          }
        }
      }
      pageInfo {
        endCursor
        hasNextPage
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant