kodadot/nft-gallery

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

Summary

Maintainability
Test Coverage
query holderOfCollectionById($id: String!, $account: String!) {
  nftEntities(
    where: {
      burned_eq: false
      currentOwner_eq: $account
      collection: { id_eq: $id }
    }
    orderBy: blockNumber_DESC
    limit: 30
    offset: 0
  ) {
    id
    name
    sn
  }
  nftEntitiesConnection(
    where: {
      burned_eq: false
      currentOwner_eq: $account
      collection: { id_eq: $id }
    }
    orderBy: blockNumber_DESC
  ) {
    totalCount
  }
}