kodadot/nft-gallery

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

Summary

Maintainability
Test Coverage
query topCollections(
  $limit: Int
  $orderBy: CollectionEntityOrderByInput = volume_DESC
  $where: CollectionEntityWhereInput = { volume_gt: "0" }
) {
  collectionEntities(orderBy: [$orderBy], limit: $limit, where: $where) {
    id
    name
    image
    media
    volume
    metadata
    floor
    nftCount
    ownerCount: distribution
  }
}