Skip to content

Instantly share code, notes, and snippets.

@dsandip
Last active October 2, 2024 22:05
Show Gist options
  • Save dsandip/5faabf0271047ca5411c7bcdf188e5e8 to your computer and use it in GitHub Desktop.
Save dsandip/5faabf0271047ca5411c7bcdf188e5e8 to your computer and use it in GitHub Desktop.

Steps

You are supergraph admin.

Create and set the project

ddn project create

Use the project name for the created project

ddn context set project <project-name>

Set up project subgraphs

ddn project subgraph create globals
ddn project subgraph create experience

Deploy current metadata to DDN

ddn supergraph build create
ddn supergraph build apply <build id>

create new subgraph called sales and invite team 2

Now have team2 deploy their subgraph

https://github.com/hasura/ddn-federation-sample-team2

Add cross subgraph relationships

git merge feature_cross_subgraph_relationships

Do Deploy to DDN again

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