From 7b1368883fcad8102e3d7d9d9b2ee458a2ed3db2 Mon Sep 17 00:00:00 2001 From: ademarCardoso Date: Thu, 16 Mar 2023 17:04:22 -0300 Subject: [PATCH 1/3] fix(int-852): change default state of the resolve nested relations --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 01ac9381..bce6fada 100755 --- a/src/index.ts +++ b/src/index.ts @@ -132,7 +132,7 @@ class Storyblok { this.cache = config.cache || { clear: 'manual' } this.helpers = new SbHelpers() this.resolveCounter = 0 - this.resolveNestedRelations = false + this.resolveNestedRelations = config.resolveNestedRelations || true this.client = new SbFetch({ baseURL: endpoint, From 484820e787a8083bb9f25d583b98b7a53f393fcf Mon Sep 17 00:00:00 2001 From: ademarCardoso Date: Tue, 21 Mar 2023 15:53:31 -0300 Subject: [PATCH 2/3] feat(int-852): updatings docs --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3a25f4ae..c7ddd6d8 100755 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ We added retro-compatibility when using `resolve_assets: 1` parameter under V2. - (`timeout` Integer, optional) - (`maxRetries` Integer, optional, defaults to 5) - (`richTextSchema` Object, optional - your custom schema for RichTextRenderer) + - (`resolveNestedRelations` Boolean, optional - By default are true) - (`endpoint` String, optional) #### Activating request cache From a99a217698b75c5e1eafd0607d7c2042dcf6323e Mon Sep 17 00:00:00 2001 From: ademarCardoso Date: Tue, 21 Mar 2023 16:14:59 -0300 Subject: [PATCH 3/3] feat(int-852): updating docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c7ddd6d8..fe7d8a73 100755 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ We added retro-compatibility when using `resolve_assets: 1` parameter under V2. - (`timeout` Integer, optional) - (`maxRetries` Integer, optional, defaults to 5) - (`richTextSchema` Object, optional - your custom schema for RichTextRenderer) - - (`resolveNestedRelations` Boolean, optional - By default are true) + - (`resolveNestedRelations` Boolean, optional - By default is true) - (`endpoint` String, optional) #### Activating request cache