Question:
Trying to query against draft-posts with filter set to commentingEnabled: {$eq: true} seems to return the opposite?
Product:
Wix Studio
What are you trying to achieve:
I want to find all of the draft-posts that have commentingEnabled set to true so I can then modify them to set them to false.
What have you already tried:
This query returns draft-posts that have commentingEnabled set to false instead of true. For now I’ve just flipped the logic so I can get the enabled records, which will confuse the next guy to read the code. Is it a bug, or am I doing it wrong?
var options = {
url: '/draft-posts/query',
method: 'post',
baseURL: 'https://www.wixapis.com/blog/v3',
headers: {
"content-type": "application/json",
"Authorization": mySecret,
'wix-accunt-id': account_id,
'wix-site-id': site_id
},
data: {
filter: {
commentingEnabled: {$eq: true}
},
paging: {
limit: 50,
offset: (0)
}
},
timeout: 5000,
responseType: 'json',
responseEncoding: 'utf8',
}
return await axios(options);
Additional information: