queries/subsquid/general/collectionListWithSearchProfile.graphql
#import "../../fragments/collection.graphql"
#import "../../fragments/collectionDetails.graphql"
query collectionListWithSearch(
$first: Int!
$offset: Int
$search: [CollectionEntityWhereInput!]
$orderBy: [CollectionEntityOrderByInput!] = [blockNumber_DESC]
) {
collectionEntities(
orderBy: $orderBy
limit: $first
offset: $offset
where: { AND: $search }
) {
...collection
...collectionDetails
nfts(where: { burned_eq: false }) {
id
metadata
name
price
burned
currentOwner
events(where: { interaction_eq: BUY }) {
meta
}
}
}
stats: collectionEntitiesConnection(
where: { AND: $search }
orderBy: blockNumber_DESC
) {
totalCount
}
}