Skip to content

Instantly share code, notes, and snippets.

@dsandip
Created May 8, 2024 18:30
Show Gist options
  • Save dsandip/0b7b623ecb1a462d6cb264d650ba9f2e to your computer and use it in GitHub Desktop.
Save dsandip/0b7b623ecb1a462d6cb264d650ba9f2e to your computer and use it in GitHub Desktop.

Table of Contents

Architecture and Objectives

The architecture we'll implement will look like this.

Core concepts

Please check out this page for a quick overview of some key concepts like subgraph, supergraph, sources, etc.

API Producers: connecting data sources

Our Supergraph has 3 subgraphs - one each for Postgres, MongoDB and a microservice. In this section, we'll add these subgraphs to our supergraph.

how to handle the collaborators thing? Test with personal email ID as collaborator

Prerequisites

  1. Sign up at https://console.hasura.io/ using your Siemens emails.
  2. Post login you'll see option to join our project as a collaborator - accept the invite.

insert image post-signup-collaborator-accept-message

  1. Install the new Hasura CLI: follow instructions at https://hasura.io/docs/3.0/cli/installation/

    • POWERSHELL IS RECOMMENDED FOR WINDOWS USERS

    [!IMPORTANT] POWERSHELL IS RECOMMENDED FOR WINDOWS USERS

  2. Assuming you have Visual Studio Code installed already, install the Hasura extension

what is the point of getting added as a collaborator? How do I create a subgraph "inside a project" - is this done via the folder structure? For now create a new project and proceed and see what happens

Adding PostgreSQL subgraph

Instructions with create new poject flow

  1. Create new project and cd into the folder
  2. ddn add connector-manifest app_connector --subgraph app --hub-connector hasura/postgres --type cloud
    • This assumes that your project already has a subgraph named app (Which it does by default). So, don't change this.

Usage

This is the usage section.

Examples

This is the examples section.

Conclusion

This is the conclusion section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment