kodadot/nft-gallery

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

Summary

Maintainability
Test Coverage
#import "../../fragments/nftSubsquid.graphql"
#import "../../fragments/nftDetails.graphql"
#import "../../fragments/baseMeta.graphql"

query nftEntitiesByStrings($ids: [String!]!) {
  nftEntities(where: { id_in: $ids }) {
    ...nftSubsquid
    ...nftDetails
    collection {
      id
      name
      floorPrice: nfts(
        where: { burned_eq: false, price_not_eq: "0" }
        orderBy: price_ASC
        limit: 1
      ) {
        price
      }
    }
    meta {
      ...baseMeta
    }
  }
}