How to filter price range in GraphQL (Apollo-Client)

Viewed 13

export const FILTER_QUERY = gql`
query collections($id:ID!){
  collections(
    where:{id:$id}
  ){
     id
    name
    symbol
    description
    volumes{
      date
      price
    }
    product(orderBy:id, orderDirection:desc,filter:{price:{gt:10}})
    {
      id
      image
      tokenID
      name
      price
      owner
    }
  }
}
 
`;
I don't know to do it from last two day. I tried every things but non it worked. even I tried putting where instead of filter still it does not work.

0 Answers
Related