You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/en/subgraphs/guides/subgraph-composition.mdx
+10-10
Original file line number
Diff line number
Diff line change
@@ -39,20 +39,20 @@ While the source Subgraph is a standard Subgraph, the dependent Subgraph uses th
39
39
40
40
### Source Subgraphs
41
41
42
-
- All Subgraphs need to be published with a **specVersion 1.3.0 or later** (Use the latest graph-cli version to be able to deploy composable Subgraphs)
42
+
- All Subgraphs need to be published with a **specVersion 1.3.0 or later** (Use the latest graph-cli version to be able to deploy composable Subgraphs).
43
43
- See notes here: https://github.com/graphprotocol/graph-node/releases/tag/v0.37.0
44
-
- Immutable entities only: All Subgraphs must have [immutable entities](https://thegraph.com/docs/en/subgraphs/best-practices/immutable-entities-bytes-as-ids/#immutable-entities) when the Subgraph is deployed
45
-
- Pruning can be used in the source Subgraphs, but only entities that are immutable can be composed on top of
46
-
- Source Subgraphs cannot use grafting on top of existing entities
47
-
- Aggregated entities can be used in composition, but entities that are composed from them cannot performed additional aggregations directly
44
+
- Immutable entities only: All Subgraphs must have [immutable entities](/subgraphs/best-practices/immutable-entities-bytes-as-ids/#immutable-entities) when the Subgraph is deployed.
45
+
- Pruning can be used in the source Subgraphs, but only entities that are immutable can be composed on top of.
46
+
- Source Subgraphs cannot use grafting on top of existing entities.
47
+
- Aggregated entities can be used in composition, but entities that are composed from them cannot performed additional aggregations directly.
48
48
49
49
### Composed Subgraphs
50
50
51
-
- You can only compose up to a **maximum of 5 source Subgraphs**
52
-
- Composed Subgraphs can only use **datasources from the same chain**
53
-
-**Nested composition is not yet supported**: Composing on top of another composed Subgraph isn’t allowed at this time
54
-
- Aggregated entities can be used in composition, but the composed entities on them cannot also use aggregations directly
55
-
- Developers cannot compose an onchain datasource with a Subgraph datasource (i.e. you can’t do normal event handlers and call handlers and block handlers in a composed Subgraph)
51
+
- You can only compose up to a **maximum of 5 source Subgraphs.**
52
+
- Composed Subgraphs can only use **datasources from the same chain.**
53
+
-**Nested composition is not yet supported**: Composing on top of another composed Subgraph isn’t allowed at this time.
54
+
- Aggregated entities can be used in composition, but the composed entities on them cannot also use aggregations directly.
55
+
- Developers cannot compose an onchain datasource with a Subgraph datasource (i.e. you can’t do normal event handlers and call handlers and block handlers in a composed Subgraph).
56
56
57
57
Additionally, you can explore the [example-composable-subgraph](https://github.com/graphprotocol/example-composable-subgraph) repository for a working implementation of composable Subgraphs
0 commit comments