Learn about Goldsky concepts such as sources, streams, 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.
In many cases, projects have more complex data requirements than accessing (subgraph) data via for example a GraphQL API. This is where Goldsky Streams comes into play.
To accommodate for your project’s data needs, you can define Transforms as seen in the following diagrams.
More often than not, your project requires some sort of data transformation. You can define a single SQL transform to
SUM, ... data so it fits the need of your project.
What if your application requires slightly different data than your data warehouse? Well, multiple streams to the rescue.
Individual streams 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.