dapperlabs / nba-smart-contracts

Smart contracts and transactions for Topshot, the official NBA digital collectibles game on the Flow Blockchain
https://www.nbatopshot.com
The Unlicense
336 stars 104 forks source link

GraphQL issue - getMintedMoments #220

Closed xaviers1998 closed 4 months ago

xaviers1998 commented 1 year ago

We have been using the GraphQL endpoint to make queries for data on Top Shot for a while and one of the queries we were running seems like it stopped working.

getMintedMoments https://developers.nbatopshot.com/docs/GraphQL/queries/get-minted-moments

I tried running the query on postman as well and we're constantly getting null results:

{
    "data": {
        "getMintedMoments": {
            "data": [
                null
            ]
        }
    }
}

Here is my query, which we supply an array of moment Ids:

query getMomentMedia($momentIds: [ID!]!) {
  getMintedMoments(input: { momentIds: $momentIds }) {
    data {
        id
        set {
            flowName
            assetPath
        }
        flowId
        forSale
        flowSerialNumber
        tier
        setPlay {
            flowRetired
            circulations {
                circulationCount
            }
        }
        play {
            stats {
                playType
            }
            headline
            shortDescription
            description
            assets {
                images {
                    url
                }
                videos {
                    url
                }
            }
        }
    }
  }
}