Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL API: filtering support in query type definitions #3228

Open
anggxyz opened this issue Aug 7, 2020 · 0 comments
Open

GraphQL API: filtering support in query type definitions #3228

anggxyz opened this issue Aug 7, 2020 · 0 comments
Labels

Comments

@anggxyz
Copy link

anggxyz commented Aug 7, 2020

Would be great to have filtering support in the GraphQL type definitions.
eg., to filter the result of tokenTransfers according to 'fromAddressHash' and 'toAddressHash'

query getTokenTransfers {
 tokenTransfers (
  	filter: {
      toAddressHash:{
        contains:""
      }
    }
  	first:1
  	after:"YXJyYXljb25uZWN0aW9uOjA="
  	tokenContractAddressHash: "0x2d7882beDcbfDDce29Ba99965dd3cdF7fcB10A1e"
) {
  	edges {
    	  cursor
      	node {
          fromAddressHash
          amount
          toAddressHash
          transactionHash
        }
    }
  	pageInfo{
    		startCursor
      	        endCursor
      	        hasNextPage
  	    }
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants