kodadot/nft-gallery

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

Summary

Maintainability
Test Coverage
query allEventsByProfile($id: String) {
  events(where: { caller_eq: $id, OR: { currentOwner_eq: $id } }) {
    meta
    interaction
    blockNumber
    timestamp
    currentOwner
    caller
    id
    nft {
      id
      sn
      name
      metadata
      collection {
        id
        name
        __typename
      }

      meta {
        id
        image
        animationUrl
        __typename
      }
      __typename
    }
    __typename
  }
}