queries/subsquid/general/collectionForMint.graphql
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
}
}
}