I am writing a query to fetch all products that are currently active and published on the Online store. The .dev assistant has built this query:
query GetActivePublishedProducts {
products(first: 10, query: "status:active AND published_status:published") {
edges {
node {
id
title
handle
status
...
}
}
}
}
However, when I run it on the current API version, I am getting some warnings on my query filter:
...
"search": [
{
"path": [
"products"
],
"query": "status:active AND published_status:published",
"parsed": {
"and": [
{
"field": "status",
"match_all": "active"
},
{
"field": "published_status",
"match_all": "published"
}
]
},
"warnings": [
{
"field": "published_status",
"message": "Input `published` is not an accepted value."
}
]
}
]
...
Looking at the query filters just makes me even more confused, because I am getting different numbers with each filter I use (publishable_status, published_status, product_publication_status… ). What is the proper term to use here without getting any warnings?