kodadot/nft-gallery

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

Summary

Maintainability
Test Coverage
#import "../../fragments/subsquidNft.graphql"

query notificationsByAccount($account: String!, $limit: Int = 30) {
  # get sale event
  events(
    limit: $limit
    where: { currentOwner_eq: $account, interaction_eq: BUY }
    orderBy: timestamp_DESC
  ) {
    id
    interaction
    timestamp
    currentOwner
    meta
    nft {
      ...subsquidNft
    }
  }
}