TERNOA Documentation
Learn Build
  • What is Ternoa Chain ?
  • SPECS
    • Polygon CDK zkEVM
    • Polygon AggLayer
    • Avail DA
    • Trusted Execution Environments 
  • BUILD
    • Wallets
    • RPC
    • API
    • Explorer
  • Tools
    • Staking
    • Ternoa Safe
    • TIP
  • Community
    • Ternoa.com
    • Github
    • Discord
    • Twitter
    • Medium
Powered by GitBook
On this page
  1. Build
  2. Javascript SDK
  3. Indexer
  4. Global requests

Filtered queries

Last updated 1 year ago

In this section, you'll see how to filter queries:

You can try this directly in our or our

You can use any of the graphql generated filters to filter your data depending on your requirements:

Query NFTs filtered by Owner and by price field.

(PriceRounded = to CAPS amount)

query {
  nftEntities(
    filter: {
      and: [
        { priceRounded: { greaterThanOrEqualTo: 1000 } }
        {
          owner: { equalTo: "5E4FWi7Vo8mFvSB1xNz3pMXodR3WDJ3TASgkeP8jDuB3dG1Y" }
        }
      ]
    }
    first: 10
    offset: 0
  ) {
    totalCount
    nodes {
      nftId
      owner
      timestampList
      priceRounded
      marketplaceId
    }
  }
}

You can access all the different filters in the schema tab on the right panel of the graphql playground.

alphanet indexer's playground
mainnet indexer's playground