Skip to content

Commit 351a084

Browse files
committed
pr543
1 parent dbc69e5 commit 351a084

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

website/src/pages/en/subgraphs/developing/creating/subgraph-manifest.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,8 @@ let tradingPair = context.getString('tradingPair')
452452

453453
There are setters and getters like `setString` and `getString` for all value types.
454454

455+
> **Note:** Referecing an entity is done via ID in graphQL. That id can be passed into the instantiated data source by setting it in the context and then accessed within the mapping of the template. Example can be found in the [documenation of graph-ts](https://github.com/graphprotocol/graph-tooling/tree/main/packages/ts#api).
456+
455457
## Start Blocks
456458

457459
The `startBlock` is an optional setting that allows you to define from which block in the chain the data source will start indexing. Setting the start block allows the data source to skip potentially millions of blocks that are irrelevant. Typically, a Subgraph developer will set `startBlock` to the block in which the smart contract of the data source was created.

0 commit comments

Comments
 (0)