nba-smart-contracts icon indicating copy to clipboard operation
nba-smart-contracts copied to clipboard

GraphQL issue - getMintedMoments

Open xaviers1998 opened this issue 2 years ago • 0 comments

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
                }
            }
        }
    }
  }
}

xaviers1998 avatar Aug 01 '23 23:08 xaviers1998