Closed andrei-ivanov closed 2 years ago
Exactly. It's not an SDK issue. Will forward it to the respective team.
Btw could you try out if the where condition works when directly writing the IDs inside the predicate and not using a predicate variable?
I don't really know how, none of these attempts worked, failing with a parse error from the backend:
productSelections(active=true and productSelection(id in [2e89d89b-bdfb-4339-8e53-7638966a97c2,21a7ebc9-75e4-4be4-b3e7-a9808796ac1c]))
productSelections(active=true and productSelection(id in 2e89d89b-bdfb-4339-8e53-7638966a97c2,21a7ebc9-75e4-4be4-b3e7-a9808796ac1c))
productSelections(active=true and productSelection(id in (2e89d89b-bdfb-4339-8e53-7638966a97c2,21a7ebc9-75e4-4be4-b3e7-a9808796ac1c)))
should be productSelections(active=true and productSelection(id in ("2e89d89b-bdfb-4339-8e53-7638966a97c2","21a7ebc9-75e4-4be4-b3e7-a9808796ac1c")))
See also https://docs.commercetools.com/api/predicates/query
I got a 200
result status for GET https://api.europe-west1.gcp.commercetools.com/loylogic-poc/stores?where=productSelections%28active%3Dtrue+and+productSelection%28id+in+%28%222e89d89b-bdfb-4339-8e53-7638966a97c2%22%2C%2221a7ebc9-75e4-4be4-b3e7-a9808796ac1c%22%29%29%29
, but still no stores in the result.
Okay at least we can rule out that it was about the input variables. The team is looking at it. :)
Could it be that there is no store with these product selections assigned?
Damn it.... you're right, I'm embarrassed to say. I've named the selections with the same key as the stores and somehow I forgot to select them at the store level. Sorry for the noise.
Stack information:
It's probably not an SDK issue but a server/platform one.