How to group schemas into array of objects

I’m not sure how to group my schemas so when I pull the data from the API into my app it appears as something like:

reviews: [
  {
    name: '',
    description: '',
    rating: '',
  },
  {
    name: '',
    description: '',
    rating: '',
  },
]

Something structured like this? I couldn’t find where to do this if it’s something obvious sorry in advance

1 Like

Hey there!

After creating your content entries you can use the Stories endpoint to receive you data: https://www.storyblok.com/docs/api/content-delivery#core-resources/stories/retrieve-multiple-stories

This will return you an array of your entries. You can also create a folder for your reviews and than access only those entries using the starts_with=reviews/ parameter where reviews would be the slug of the folder of your entries. Here is also a tutorial on how to set up collections: https://www.storyblok.com/tp/how-to-create-a-blog-content-structure

1 Like

Ahhh I think i’ve got it working thanks for the help :slight_smile:

1 Like