OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

GraphQL Shopify API, return query filters

  • Thread starter Thread starter LordNikon27
  • Start date Start date
L

LordNikon27

Guest
I'm using the GraphQL of shopify for search products and retrieve the handle, this is the data i use in my requests in my python code.

Code:
data = {
        "query": f"""
            {{
              products(first: {MAX_SIZE}, query: {my_query} ) {{
                edges {{
                  node {{
                    handle
                  }}
                }}
              }}
            }}
            """
    }

Everything work as aspected. The variable my_query contains many OR filters.

I would like to know if is possible returns inside the node, with the handle, which one of the filters was right for the product.

I try to search online but i didn't find a solution.

Thanks to all.
<p>I'm using the GraphQL of shopify for search products and retrieve the handle, this is the data i use in my requests in my python code.</p>
<pre><code>data = {
"query": f"""
{{
products(first: {MAX_SIZE}, query: {my_query} ) {{
edges {{
node {{
handle
}}
}}
}}
}}
"""
}
</code></pre>
<p>Everything work as aspected. The variable my_query contains many OR filters.</p>
<p>I would like to know if is possible returns inside the node, with the handle, which one of the filters was right for the product.</p>
<p>I try to search online but i didn't find a solution.</p>
<p>Thanks to all.</p>
 

Latest posts

Online statistics

Members online
0
Guests online
3
Total visitors
3
Top