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

How to fix an issue with displaying only the selected array in a Slack thread.

2 replies
Last updated: Sep 6, 2023
Hi, i want to show only
selected
array, instead I get selected->type->selected[]
'selected': selected->{

type[0]{

selected[]->{...}

}

}
how can I fix it?
Sep 5, 2023, 7:54 PM
Can you share your schema and what data you are trying to extract? Actual and expected results would be helpful as well.
Sep 6, 2023, 8:48 AM
i fixed it by doing
'selected': selected->type[0].selected[]->{

...

}
Sep 6, 2023, 8:50 AM

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?