kodadot/nft-gallery

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

Summary

Maintainability
Test Coverage
query collectionsSales($ids: [String!]) {
  collectionsSales: collectionEntities(where: {id_in: $ids}) {
    id
    sales: nfts(where: { events_some: { interaction_eq: BUY }, collection: { id_in: $ids } }) {
      
      events(where: { interaction_eq: BUY }) {
        id,
        meta
        caller
        timestamp
        blockNumber
        interaction
      }
    }
  }
}