kodadot/nft-gallery

View on GitHub
queries/subsquid/general/collectionForMint.graphql

Summary

Maintainability
Test Coverage
query collectionForMint($account: String!) {
  collectionEntities(
    where: { currentOwner_eq: $account, burned_eq: false }
    orderBy: blockNumber_DESC
  ) {
    id
    name
    metadata
    max
    alreadyMinted: nftCount
    totalCount: supply
    lastNft: nfts(orderBy: sn_DESC, limit: 1) {
        sn
    }
  }
}