Open segwitnitwit opened 1 year ago
I'd like to be able to sort by usdc price.
EDIT: Please let me know if this is the correct place for this request.
I am using React w/ the graphql apollo client to query -> https://api.zora.co/graphql
here is my full query: (It's exactly what I want, except that I cannot have the sortKey be USDC_PRICE since it's not part of the SaleSortKey enum.)
query TopPurchaseForAnAddress($userAddress : String!) { sales(where: {buyerAddresses: [$userAddress] }, filter: {priceFilter:{minimumChainTokenPrice:"0.000000001"}}, sort: {sortKey: CHAIN_TOKEN_PRICE, sortDirection: DESC}, pagination: {limit: 100}) { nodes { sale { price { usdcPrice { decimal } nativePrice { decimal currency { name } } } buyerAddress transactionInfo { transactionHash } } token { name tokenId tokenContract { name } } } } }
I realize im using the api and not the zdk. but I didn't know where to put a request for this new sort option to be added to the api.
I'd like to be able to sort by usdc price.
EDIT: Please let me know if this is the correct place for this request.
I am using React w/ the graphql apollo client to query -> https://api.zora.co/graphql
here is my full query: (It's exactly what I want, except that I cannot have the sortKey be USDC_PRICE since it's not part of the SaleSortKey enum.)