Unlock seamless workflows and faster delivery with our latest releases- get the details

Issue with dynamically generated values in array filter in Slack thread.

3 replies
Last updated: Jan 31, 2024
Hello!
Do you know why
test
and
test1
works but not
test2
nor
test3
?
    "test": override_en_gb,
    "test1": @["override_en_gb"],
    "test2": @["override_"+$lang],
    "test3": @[string("override_"+$lang)],
Jan 31, 2024, 5:53 AM
It’s not possible to filter on dynamically generated values like
"something" + $parameter
Jan 31, 2024, 9:30 AM
Just to clarify
test2
and
test3
are interpreted as an array filter and not an object key lookup. Would be nice if this worked better.
Jan 31, 2024, 10:34 AM
I see! It makes sense now! Thanks!
Jan 31, 2024, 2:35 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?