Introduction
Concepts
Learn about Goldsky concepts such as sources, pipelines, and sinks.
Sources & sinks
In its most basic form, Goldsky reads data from one or more sources and gives you access to that data via sinks.
Single source, single sink
For example, a source may be your subgraph which you can access through a GraphQL API.
Multiple sources, single sink
You are not limited to a single source or sink. With add-ons such as cross-chain subgraphs, you can merge more than one subgraph and access its data through a single GraphQL API sink.
Transforms
In many cases, projects have more complex data requirements than accessing (subgraph) data via for example a GraphQL API. This is where Goldsky Transforms comes into play.
To accommodate for your project’s data needs, you can define Transforms as seen in the following diagrams.
Single transform
More often than not, your project requires some sort of data transformation. You can define a single SQL transform to GROUP BY
, SUM
, ... data so it fits the need of your project.
Multiple transforms
What if your application requires slightly different data than your data warehouse? Well, multiple pipelines to the rescue.
Individual pipelines in the pipeline can connect to independent sinks. The following diagram outlines how a single source can serve both an ETL-style process and a real-time use case for an application.