queries/subsquid/general/nftListSoldByCollection.graphql
#import "../../fragments/nftDetails.graphql"
#import "../../fragments/subsquidNft.graphql"
#import "../../fragments/collectionMeta.graphql"
query nftListSoldByCollection(
$account: String!
$collectionId: String!
$limit: Int!
$offset: Int
$orderBy: NFTEntityOrderByInput = blockNumber_DESC
$and: [NFTEntityWhereInput!]
) {
nftEntities(
where: {
issuer_eq: $account
collection: { id_eq: $collectionId },
currentOwner_not_eq: $account
burned_eq: false,
AND: $and
}
orderBy: [$orderBy, blockNumber_DESC]
limit: $limit
offset: $offset
) {
...subsquidNft
...nftDetails
...collectionMeta
}
}