From b7edde5da4332b194ac7747914df1100229a8464 Mon Sep 17 00:00:00 2001 From: Michael Macaulay <56690114+MichaelMacaulay@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:17:07 +0000 Subject: [PATCH 1/5] Update source subgraph number --- .../cookbook/subgraph-composition-three-sources.mdx | 10 +++++----- .../en/subgraphs/cookbook/subgraph-composition.mdx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx b/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx index 0c80e9d674c3..93f2877c8d66 100644 --- a/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx +++ b/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx @@ -3,7 +3,7 @@ title: Aggregate Data Using Subgraph Composition sidebarTitle: 'Build a Composable Subgraph with Multiple Subgraphs' --- -Optimize your Subgraph by merging data from three independent, source Subgraphs into a single composable Subgraph to enhance data aggregation. +Optimize your Subgraph by merging data from 5 independent, source Subgraphs into a single composable Subgraph to enhance data aggregation. > Important Reminders: > @@ -24,7 +24,7 @@ To deploy **all** Subgraphs locally, you must have the following: ## Get Started -The following guide provides examples for defining three source Subgraphs to create one powerful composed Subgraph. +The following guide provides examples for defining 5 source Subgraphs to create one powerful composed Subgraph. ### Specifics @@ -72,7 +72,7 @@ This third source Subgraph indexes the size of each block. To deploy this Subgra ### Step 4. Combine Into Block Stats Subgraph -This composed Subgraph combines and aggregates the information from the three source Subgraphs above, providing a unified view of block statistics. To deploy this Subgraph locally, run the same commands as above. +This composed Subgraph combines and aggregates the information from the 5 source Subgraphs above, providing a unified view of block statistics. To deploy this Subgraph locally, run the same commands as above. > Note: > @@ -83,12 +83,12 @@ This composed Subgraph combines and aggregates the information from the three so #### Key Functions - It provides a consolidated data model that encompasses all relevant block metrics. -- It combines data from three source Subgraphs, and provides a comprehensive view of block statistics, enabling more complex queries and analyses. +- It combines data from 5 source Subgraphs, and provides a comprehensive view of block statistics, enabling more complex queries and analyses. ## Key Takeaways - This powerful tool will scale your Subgraph development and allow you to combine multiple Subgraphs. -- The setup includes the deployment of three source Subgraphs and one final deployment of the composed Subgraph. +- The setup includes the deployment of 5 source Subgraphs and one final deployment of the composed Subgraph. - This feature unlocks scalability, simplifying both development and maintenance efficiency. ## Additional Resources diff --git a/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx b/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx index 706259dbfa33..d610d85d5722 100644 --- a/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx +++ b/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx @@ -136,4 +136,4 @@ This approach unlocks composability and scalability, simplifying both developmen To use other advanced features in your Subgraph, check out [Subgraph advanced features](/developing/creating/advanced/) and [this Subgraph composition example repo](https://github.com/incrypto32/subgraph-composition-sample-subgraph). -To learn how to define three source Subgraphs, check out [this Subgraph composition example repo](https://github.com/isum/subgraph-composition-example). +To learn how to define 5 source Subgraphs, check out [this Subgraph composition example repo](https://github.com/isum/subgraph-composition-example). From 2eab3d59b6a7b53372becfc67d1a8778571b400d Mon Sep 17 00:00:00 2001 From: Michael Macaulay <56690114+MichaelMacaulay@users.noreply.github.com> Date: Tue, 11 Mar 2025 10:06:46 +0000 Subject: [PATCH 2/5] Fixing --- .../cookbook/subgraph-composition-three-sources.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx b/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx index 93f2877c8d66..ef400656aa78 100644 --- a/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx +++ b/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx @@ -24,7 +24,7 @@ To deploy **all** Subgraphs locally, you must have the following: ## Get Started -The following guide provides examples for defining 5 source Subgraphs to create one powerful composed Subgraph. +The following guide provides examples for defining source Subgraphs to create one powerful composed Subgraph. ### Specifics @@ -72,7 +72,7 @@ This third source Subgraph indexes the size of each block. To deploy this Subgra ### Step 4. Combine Into Block Stats Subgraph -This composed Subgraph combines and aggregates the information from the 5 source Subgraphs above, providing a unified view of block statistics. To deploy this Subgraph locally, run the same commands as above. +This composed Subgraph combines and aggregates the information from the source Subgraphs above, providing a unified view of block statistics. To deploy this Subgraph locally, run the same commands as above. > Note: > @@ -83,12 +83,12 @@ This composed Subgraph combines and aggregates the information from the 5 source #### Key Functions - It provides a consolidated data model that encompasses all relevant block metrics. -- It combines data from 5 source Subgraphs, and provides a comprehensive view of block statistics, enabling more complex queries and analyses. +- It combines data from 3 source Subgraphs, and provides a comprehensive view of block statistics, enabling more complex queries and analyses. ## Key Takeaways - This powerful tool will scale your Subgraph development and allow you to combine multiple Subgraphs. -- The setup includes the deployment of 5 source Subgraphs and one final deployment of the composed Subgraph. +- The setup includes the deployment of 3 source Subgraphs and one final deployment of the composed Subgraph. - This feature unlocks scalability, simplifying both development and maintenance efficiency. ## Additional Resources From bbdf2107a8316a83b1ab56414b40ffd95a1a26a5 Mon Sep 17 00:00:00 2001 From: Michael Macaulay <56690114+MichaelMacaulay@users.noreply.github.com> Date: Tue, 11 Mar 2025 10:19:39 +0000 Subject: [PATCH 3/5] Mention pruning --- .../subgraphs/cookbook/subgraph-composition-three-sources.mdx | 1 + .../src/pages/en/subgraphs/cookbook/subgraph-composition.mdx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx b/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx index ef400656aa78..e670ff27299d 100644 --- a/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx +++ b/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx @@ -9,6 +9,7 @@ Optimize your Subgraph by merging data from 5 independent, source Subgraphs into > > - Subgraph composition is built into the CLI, and you can deploy with [Subgraph Studio](https://thegraph.com/studio/). > - This feature requires `specVersion` 1.3.0. +> - Source subgraphs cannot be using pruning. ## Overview diff --git a/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx b/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx index d610d85d5722..a42ee8ccd0a3 100644 --- a/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx +++ b/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx @@ -8,8 +8,8 @@ Leverage Subgraph composition to speed up development time. Create a base Subgra > Important Reminders: > > - Subgraph composition is built into the CLI, and you can deploy with [Subgraph Studio](https://thegraph.com/studio/). -> - You can use existing Subgraphs, but they must be redeployed with `specVersion` 1.3.0, which doesn't require you to write new code. -> - You may want to restructure your Subgraph to split out the logic as you move to a composable Subgraph world. +> - This feature requires `specVersion` 1.3.0. +> - Source subgraphs cannot be using pruning. ## Introduction From a78f233626347f5fae230391e5c91d5457bfa3fd Mon Sep 17 00:00:00 2001 From: Michael Macaulay <56690114+MichaelMacaulay@users.noreply.github.com> Date: Tue, 11 Mar 2025 11:19:33 +0000 Subject: [PATCH 4/5] Final edit --- .../src/pages/en/subgraphs/cookbook/subgraph-composition.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx b/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx index a42ee8ccd0a3..22015b9ad12b 100644 --- a/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx +++ b/website/src/pages/en/subgraphs/cookbook/subgraph-composition.mdx @@ -136,4 +136,4 @@ This approach unlocks composability and scalability, simplifying both developmen To use other advanced features in your Subgraph, check out [Subgraph advanced features](/developing/creating/advanced/) and [this Subgraph composition example repo](https://github.com/incrypto32/subgraph-composition-sample-subgraph). -To learn how to define 5 source Subgraphs, check out [this Subgraph composition example repo](https://github.com/isum/subgraph-composition-example). +To learn how to define source Subgraphs, check out [this Subgraph composition example repo](https://github.com/isum/subgraph-composition-example). From b0e057525293a99d3261f293fb7e9f4ee71fda08 Mon Sep 17 00:00:00 2001 From: Michael Macaulay <56690114+MichaelMacaulay@users.noreply.github.com> Date: Thu, 13 Mar 2025 09:10:16 +0000 Subject: [PATCH 5/5] Final fixes --- .../subgraphs/cookbook/subgraph-composition-three-sources.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx b/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx index e670ff27299d..268c1891423e 100644 --- a/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx +++ b/website/src/pages/en/subgraphs/cookbook/subgraph-composition-three-sources.mdx @@ -3,7 +3,7 @@ title: Aggregate Data Using Subgraph Composition sidebarTitle: 'Build a Composable Subgraph with Multiple Subgraphs' --- -Optimize your Subgraph by merging data from 5 independent, source Subgraphs into a single composable Subgraph to enhance data aggregation. +Optimize your Subgraph by merging data from 3 independent, source Subgraphs into a single composable Subgraph to enhance data aggregation. > Important Reminders: > @@ -25,7 +25,7 @@ To deploy **all** Subgraphs locally, you must have the following: ## Get Started -The following guide provides examples for defining source Subgraphs to create one powerful composed Subgraph. +The following guide provides examples for defining 3 source Subgraphs to create one powerful composed Subgraph. ### Specifics