Thanks Yisrael for your answer. I suppose what you meant was .eq(‘productOptions['קטגוריה'].value’, ‘נעליים’) or .eq(‘productOptions[“קטגוריה”].value’, ‘נעליים’) or .eq(“productOptions[‘קטגוריה’].value”, ‘נעליים’) or
.eq(productOptions[${'קטגוריה'}].value
, ‘נעליים’)
Unfortunately, none of these works. Eventually, there is a POST to find.ajax endpoint (in my tests it was to https://1fa0a02a-d9fd-43ea-9cf1-d7d28cf261f4.dev.wix-code.com/wix/data-web.jsw/find.ajax.) )..) (in PRODUCTION it will go to https://www.clothing-tale. com//_api/wix-code-public-dispatcher/siteview/wix/data-web.jsw/find.ajax,) ),,) there are 3 query params: gridAppId, instance and viewMode , this POST is issued by getJSON function:
getJSON: function(e) {
var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] :
, t = this.currentPath ? location.href.replace(this.currentPath, e) : getPathWithBaseUrl(this.baseUrl, e, this.queryParameters)
, o = this.options
, n = o.headers
, i = void 0 === n ? {} : n
, s = o.withCredentials
, a = void 0 !== s && s
, u = o.timeout
, c = void 0 === u ? THIRTY_SECONDS : u
, p = _objectSpread(_objectSpread({}, i), {}, {
“Content-Type”: “application/json”
});
return new Promise(function(e, o) {
var n = new XMLHttpRequest;
function i(e) {
var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : “”
, t = new Error(r);
return t.xhr = n,
t.errorType = e,
t
}
…
POST payload:
[
“Stores/Products” ,
{
“$and” : [
{
“productOptions[‘קטגוריה’].value” : “נעליים”
}
]
},
null ,
0 ,
50 ,
null ,
]
It responds with status 200 with error message: Unknown token productOptions[‘קטגוריה’].value → Map($eq → נעליים)
Here is full response:
{“result”:{“message”:“{"message":"Unknown token productOptions[‘קטגוריה’].value → Map($eq → נעליים)","details":{}}”,“name”:“Error”,“stack”:“Error: {"message":"Unknown token productOptions[‘קטגוריה’].value → Map($eq → נעליים)","details":{}}\n at errorWithCode (@wix/wix-data-errors/lib/errors.js:322:15)\n at wixDataError (@wix/wix-data-errors/lib/errors.js:282:10)\n at createError (wix/node_modules/@wix/wix-dis-client/src/utils/error-utils.js:40:10)\n at rejectWithError (wix/node_modules/@wix/wix-dis-client/src/utils/error-utils.js:29:25)\n at mapError (wix/node_modules/@wix/wix-dis-client/src/utils/error-utils.js:14:14)”,“code”:“WD_VALIDATION_ERROR”,“_elementoryError”:true},“exception”:true}
BTW, the same error I am getting when POSTING at the same manner Latin letters option name:
“Unknown token productOptions[‘Category’].value → Map($eq → נעליים)”
Please assist, thanks in advance,
Andriy
(I am posting this reply under my wife’s account, which is the owner of the Premiun WIX subscription)