christianzoppi / storyblok-11ty

Import data from Storyblok to Eleventy (11ty)
19 stars 7 forks source link

Parameter to configure resolve_relations when fetching stories #2

Closed rupl closed 4 years ago

rupl commented 4 years ago

Fixes #1

Adds a resolve_relations parameter when fetching stories. Official Storyblok docs show a resolve_relations parameter which allows you to fetch content recursively. It's really handy for reducing requests, and means all your data can appear in one object (e.g. a cocktail contains 5 ingredients with their own properties)

christianzoppi commented 4 years ago

@rupl thank you!

I wanted to add this feature myself then I just stopped working on the package for a while. Your help is much appreciated. :-)

rupl commented 4 years ago

Great to hear, glad I could help out!