A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I am trying to make a query term search with python, this is the code:
query = """
query($terms: String) {
products(first:250, query:$terms) {
pageInfo {
hasNextPage
}
edges {
cursor
node {
id
handle
tags
}
}
}
}
"""#.format(tag)
return shopify.GraphQL().execute(query, variables={"query": terms})
I get all the products, the query doesn't filter them.
I want to find the term in all the document fields.
What's wrong?