From 9965c4e40f548ab29d8e46fda63076bb2c914f25 Mon Sep 17 00:00:00 2001 From: Chakit Arora Date: Wed, 14 Feb 2024 14:17:11 +0530 Subject: [PATCH 1/5] docs: add resolve reations hint --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f0f24f3..0178fdf6 100755 --- a/README.md +++ b/README.md @@ -234,7 +234,9 @@ One should catch the exception and handle it accordingly. ### Resolve relations using the Storyblok Bridge -With this parameter, you can resolve relations with live updates in the Storyblok JS Bridge input event. With the `resolve_relations` parameter, you can resolve content entries that are two levels deep, such as `resolve_relations=page.author,page.products`. Resolved relations can be found in the root of the response under the property `rels`. You can learn more about `resolve_relations` in [this tutorial](https://www.storyblok.com/tp/using-relationship-resolving-to-include-other-content-entries) +With this parameter, you can resolve relations with live updates in the Storyblok JS Bridge input event. With the `resolve_relations` parameter, you can resolve content entries that are two levels deep, such as `resolve_relations=page.author,page.products`. Resolved relations can be found in the root of the api response under the property `rels`. You can learn more about `resolve_relations` in [this tutorial](https://www.storyblok.com/tp/using-relationship-resolving-to-include-other-content-entries) + +> It is important to note that when using the storyblok-js-client and other framework specific sdks, you don't need to look for the rels array while resolving the relations. The resolved relations are injected into the properties and hence directly accessible through the properties. For example, you can get the resolved autors array directly with `page.author` if you're resolving it. ```javascript window.storyblok.resolveRelations( From 79c5b245556de4d048fecc9de9d8aa8b6abb4e6d Mon Sep 17 00:00:00 2001 From: Chakit Arora Date: Thu, 22 Feb 2024 16:09:13 +0530 Subject: [PATCH 2/5] docs: add resolve reations hint --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0178fdf6..312b5f2a 100755 --- a/README.md +++ b/README.md @@ -234,9 +234,9 @@ One should catch the exception and handle it accordingly. ### Resolve relations using the Storyblok Bridge -With this parameter, you can resolve relations with live updates in the Storyblok JS Bridge input event. With the `resolve_relations` parameter, you can resolve content entries that are two levels deep, such as `resolve_relations=page.author,page.products`. Resolved relations can be found in the root of the api response under the property `rels`. You can learn more about `resolve_relations` in [this tutorial](https://www.storyblok.com/tp/using-relationship-resolving-to-include-other-content-entries) +With this parameter, you can resolve relations with live updates in the Storyblok JavaScript Bridge input event. It is possible to resolve content entries that are two levels deep, such as `resolve_relations=page.author,page.products`. Resolved relations can be found in the root of the API response, in the property `rels`. You can learn more about `resolve_relations` in [this tutorial](https://www.storyblok.com/tp/using-relationship-resolving-to-include-other-content-entries) -> It is important to note that when using the storyblok-js-client and other framework specific sdks, you don't need to look for the rels array while resolving the relations. The resolved relations are injected into the properties and hence directly accessible through the properties. For example, you can get the resolved autors array directly with `page.author` if you're resolving it. +> It is important to note that when using the `storyblok-js-client` and other framework-specific SDKs, you don’t need to look for the `rels` array after resolving relations. The resolved relations are injected into the properties and, hence, are directly accessible through the properties. For example, you can access the authors array directly with `page.author` once it is resolved. ```javascript window.storyblok.resolveRelations( From c544eb1455bebd819b68aec8938a01ac6756c9e7 Mon Sep 17 00:00:00 2001 From: Chakit Arora Date: Thu, 22 Feb 2024 18:07:31 +0530 Subject: [PATCH 3/5] feat(): add-resolve-relations-hint From 000f6f4a245b871b36a8ddcd19df638f7b818f16 Mon Sep 17 00:00:00 2001 From: Chakit Arora Date: Thu, 22 Feb 2024 18:17:17 +0530 Subject: [PATCH 4/5] feat: add-resolve-relations-hint From b16c92978c6f3161c8571c91bb3808e5baa62e13 Mon Sep 17 00:00:00 2001 From: Chakit Arora Date: Thu, 22 Feb 2024 18:21:18 +0530 Subject: [PATCH 5/5] feat: add resolve relations hint