From 6008e3b27aa7fbf2aaf286c03d792c4340afad62 Mon Sep 17 00:00:00 2001 From: Giuliano-1 <59326521+Giuliano-1@users.noreply.github.com> Date: Thu, 19 Dec 2024 02:56:11 -0500 Subject: [PATCH] Update subgraph.md --- docs/new/how-to-guides/sinks/subgraph/subgraph.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/new/how-to-guides/sinks/subgraph/subgraph.md b/docs/new/how-to-guides/sinks/subgraph/subgraph.md index 610cd8c5..e9850be1 100644 --- a/docs/new/how-to-guides/sinks/subgraph/subgraph.md +++ b/docs/new/how-to-guides/sinks/subgraph/subgraph.md @@ -1,12 +1,7 @@ It is possible to the send data the of a Substreams to a subgraph, thus creating a Substreams-powered Subgraph. -There are two ways of making Substreams sink to a subgraph: -- Create a special [graph_out module](./graph-out.md) that emits an [EntityChanges](https://github.com/streamingfast/substreams-sink-entity-changes/blob/develop/proto/sf/substreams/sink/entity/v1/entity.proto#L11) Protobuf. -The subgraph will read the `EntityChanges` object and consume the data. -- Use the [**Substreams triggers**](./triggers.md) to consume Substreams Protobuf directly inside your subgraph. - ## Which Option To Use -It is really a matter of where you put your logic, in the subgraph or the Substreams. +There are two ways of making Substreams sink to a subgraph, it is really a matter of where you put your logic, in the subgraph or the Substreams. - [Substreams Triggers](./triggers.md): Consume from any Substreams module by importing the Protobuf model through a subgraph handler and write all your transformations using AssemblyScript. This method creates the subgraph entities directly in the subgraph. - [Substreams Graph-Out](./graph-out.md): By writing the subgraph entities into Substreams, you can consume the module's output directly into `graph-node`. You will create a [graph_out module](./graph-out.md) that emits an [EntityChanges](https://github.com/streamingfast/substreams-sink-entity-changes/blob/develop/proto/sf/substreams/sink/entity/v1/entity.proto#L11) Protobuf.