Skip to main content
Mirror is Goldsky’s legacy pipeline product. Use Turbo for new pipelines, and see the migration guide to move existing Mirror pipelines. Subgraph entity sources are not yet supported in Turbo, which is why this page remains.
You can use subgraphs as a pipeline source, allowing you to combined the flexibility of subgraph indexing with the expressiveness of the database of your choice. This enables a lot of powerful use-cases:
  • Reuse all your existing subgraph entities.
  • Increase querying speeds drastically compared to graphql-engines.
  • Flexible aggregations that weren’t possible with just GraphQL.
  • Analytics on protocols through Clickhouse, and more.
  • Plug into BI tools, train AI, and export data for your users
Full configuration details for Subgraph Entity source is available in the reference page.

Automatic Deduplication

Subgraphs natively support time travel queries. This means every historical version of every entity is stored. To do this, each row has an id, vid, and block_range. When you update an entity in a subgraph mapping handler, a new row in the database is created with the same ID, but new VID and block_range, and the old row’s block_range is updated to have an end. By default, pipelines deduplicate on id, to show only the latest row per id. In other words, historical entity state is not kept in the sink database. This saves a lot of database space and makes for easier querying, as additional deduplication logic is not needed for simple queries. In a postgres database for example, the pipeline will update existing rows with the values from the newest block. This deduplication happens through setting the primary key in the data going through the pipeline. By default, the primary key is id. If historical data is desired, you can set the primary key to vid through a transform.
Example pipeline with historical data retention
In this case, all historical versions of the entity will be retained in the pipeline sink. If there was no table, tables will be automatically created as well.

Using the wizard

Subgraphs from your project

Use any of your own subgraphs as a pipeline source. Use goldsky pipeline create <pipeline-name> and select Project Subgraph, and push subgraph data into any of our supported sinks.

Community subgraphs

Community subgraphs were sunset on Monday, 31 August 2026 at 12:00 UTC. To migrate, we recommend moving to the Goldsky Edge API or contacting support@goldsky.com for guidance.