E-Zbox / building-bulletproof-subgraphs

Developing subgraphs goes beyond defining: entities as GraphQL types and handlers that populate defined entities using event data. We need a way to bug-proof our subgraphs and make sure it does what it's intended for. …say hello to Unit Testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building Bulletproof Subgraphs

article-banner

Description

This repository is for an article guiding users on developing robust and bug-free subgraphs leveraging the Matchstick Unit Testing framework.

Follow the medium article to get the most out of this tutorial

Table of Content

Setting Up

Cloning repo

Clone this repository by running the below command on your terminal:

git clone https://github.com/E-Zbox/building-bulletproof-subgraphs

Installation

Run the yarn command on your terminal to install project dependencies

Live subgraphs

Each version prior to the latest has a bug (wrong implementation) that went unnoticed before deployment hence, the importance of unit testing before deploying your subgraphs.

Deployed Subgraph : (v0.0.1)

Deployed Subgraph : (v0.0.2)

Deployed Subgraph : (v0.0.3) Static Badge

About

Developing subgraphs goes beyond defining: entities as GraphQL types and handlers that populate defined entities using event data. We need a way to bug-proof our subgraphs and make sure it does what it's intended for. …say hello to Unit Testing


Languages

Language:TypeScript 100.0%