Join the Webstudio community

Updated 4 weeks ago

Reducing Request Results in the Expression Editor

Maybe its a silly question but im trying to reduce a requests results down from x amount to 3 within the expression editor of a collection. can this be done. i would do it in the graphql request but this is a child response item with no filtering
J
A
2 comments
I think you could create a collection and manually type in [0, 1, 2] then the collection will loop over those and each iteration you'd use the current number to access the corresponding child in the original data.

We will make this more intuitive with this https://github.com/webstudio-is/webstudio/issues/3465
Ah perfect Ty πŸ˜„
Add a reply
Sign up and join the conversation on Discord