Skip to content

Commit 8d6e63c

Browse files
authored
Update subgraph features section with a new feature alias (#127)
1 parent 3022e4d commit 8d6e63c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pages/en/developer/create-subgraph-hosted.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -835,12 +835,12 @@ Inside the handler function, the receipt can be accessed in the `Event.receipt`
835835

836836
Starting from `specVersion` `0.0.4`, subgraph features must be explicitly declared in the `features` section at the top level of the manifest file, using their `camelCase` name, as listed in the table below:
837837

838-
| Feature | Name |
839-
| --------------------------------------------------------- | ------------------------- |
840-
| [Non-fatal errors](#non-fatal-errors) | `nonFatalErrors` |
841-
| [Full-text Search](#defining-fulltext-search-fields) | `fullTextSearch` |
842-
| [Grafting](#grafting-onto-existing-subgraphs) | `grafting` |
843-
| [IPFS on Ethereum Contracts](#ipfs-on-ethereum-contracts) | `ipfsOnEthereumContracts` |
838+
| Feature | Name |
839+
| --------------------------------------------------------- | --------------------------------------------------- |
840+
| [Non-fatal errors](#non-fatal-errors) | `nonFatalErrors` |
841+
| [Full-text Search](#defining-fulltext-search-fields) | `fullTextSearch` |
842+
| [Grafting](#grafting-onto-existing-subgraphs) | `grafting` |
843+
| [IPFS on Ethereum Contracts](#ipfs-on-ethereum-contracts) | `ipfsOnEthereumContracts` or `nonDeterministicIpfs` |
844844

845845
For instance, if a subgraph uses the **Full-Text Search** and the **Non-fatal Errors** features, the `features` field in the manifest should be:
846846

@@ -865,7 +865,7 @@ Given such IPFS hashes, subgraphs can read the corresponding files from IPFS usi
865865

866866
In order to make this easy for subgraph developers, The Graph team wrote a tool for transferring files from one IPFS node to another, called [ipfs-sync](https://github.com/graphprotocol/ipfs-sync).
867867

868-
> **[Feature Management](#experimental-features):** `ipfsOnEthereumContracts` must be declared under `features` in the subgraph manifest.
868+
> **[Feature Management](#experimental-features):** `ipfsOnEthereumContracts` must be declared under `features` in the subgraph manifest. For non EVM chains, the `nonDeterministicIpfs` alias can also be used for the same purpose.
869869

870870
When running a local Graph Node, the `GRAPH_ALLOW_NON_DETERMINISTIC_IPFS` environment variable must be set in order to index subgraphs using this experimental functionality.
871871

0 commit comments

Comments
 (0)