Skip to content

Instantly share code, notes, and snippets.

@nenadjaja
Last active December 4, 2018 21:44
Show Gist options
  • Save nenadjaja/35fa5da3f18f8540b64fa1a80c3d56a4 to your computer and use it in GitHub Desktop.
Save nenadjaja/35fa5da3f18f8540b64fa1a80c3d56a4 to your computer and use it in GitHub Desktop.
Data model for subgraphs including deployments, organizations, names..etc
type Subgraph {
  id: ID!
  name: String!
  imageUrl: String!
  featured: Boolean
}

type Deployment {
  id: ID!
  createdAt: String!
  renamedAt: [String]
}

type SubgraphDeployment {
    subgraph: Subgraph!
    deployment: Deployment!
} 

type Organization {
  name: String!
  description: String
  members?: [String]
}

type NameOrganization {
  subgraph: Subgraph!
  organization: Organization
}

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